Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv810
Modified Files:
functions_config.inc.php
Log Message:
- apache_get_modules() is only supported with Apache 2, or Apache 1 with PHP 5 and the Apache 2 filter
Thanks to Filip
Index: functions_config.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_config.inc.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- functions_config.inc.php 17 Jan 2005 19:52:14 -0000 1.14
+++ functions_config.inc.php 19 Jan 2005 22:48:53 -0000 1.15
@@ -399,7 +399,7 @@
$res = array();
$res['none'] = 'Disable URL Rewriting';
$res['errordocs'] = 'Use Apache errorhandling';
- if( in_array('mod_rewrite', apache_get_modules()) ) {
+ if( !function_exists('apache_get_modules') || in_array('mod_rewrite', apache_get_modules()) ) {
$res['rewrite'] = 'Use Apache mod_rewrite';
}
break;
|