From: Carsten K. <car...@us...> - 2002-02-14 03:32:11
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv412 Modified Files: main.php Log Message: Moved debug constant to the top to allow for earlier use in code (the debug timer was left at the bottom). Index: main.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/main.php,v retrieving revision 1.54 retrieving revision 1.55 diff -u -b -I^#: -d -r1.54 -r1.55 --- main.php 12 Feb 2002 23:21:02 -0000 1.54 +++ main.php 14 Feb 2002 03:32:08 -0000 1.55 @@ -8,6 +8,8 @@ require_once("lib/WikiUser.php"); require_once('lib/WikiDB.php'); +define ('DEBUG', 1); + // FIXME: move to config? if (defined('THEME')) { include("themes/" . THEME . "/themeinfo.php"); @@ -564,7 +566,6 @@ list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } -define ('DEBUG', 1); if (defined ('DEBUG')) $GLOBALS['debugclock'] = getmicrotime(); main(); |