From: Reini U. <ru...@us...> - 2005-01-13 07:28:50
|
Update of /cvsroot/phpwiki/phpwiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27519 Modified Files: index.php Log Message: resolve __FILE__ also Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.146 retrieving revision 1.147 diff -u -2 -b -p -d -r1.146 -r1.147 --- index.php 13 Jan 2005 05:32:51 -0000 1.146 +++ index.php 13 Jan 2005 07:28:36 -0000 1.147 @@ -52,6 +52,6 @@ IniConfig(dirname(__FILE__)."/config/con // If any page is empty, comment the if ... line out, // to force include "lib/main.php". -// Without the dir check it might fail for index.php via DirectoyIndex -if (@is_dir(SCRIPT_FILENAME) or realpath(SCRIPT_FILENAME) == __FILE__) +// Without the dir check it might fail for index.php via DirectoryIndex +if (@is_dir(SCRIPT_FILENAME) or realpath(SCRIPT_FILENAME) == realpath(__FILE__)) include(dirname(__FILE__)."/lib/main.php"); |