moving define(mediawiki, true) from index.php to includes/Defines.php
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 14 Aug 2004 12:10:43 +0000 (12:10 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 14 Aug 2004 12:10:43 +0000 (12:10 +0000)
includes/Defines.php
index.php

index 6a5c391..3163214 100644 (file)
@@ -1,6 +1,8 @@
 <?php
-# A few constants that might be needed during LocalSettings.php
 
+define( "MEDIAWIKI", true );
+
+# A few constants that might be needed during LocalSettings.php
 define( 'DBO_DEBUG', 1 );
 define( 'DBO_NOBUFFER', 2 );
 define( 'DBO_IGNORE', 4 );
index 51214d1..58da868 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
 <?php
-
+#apd_set_pprof_trace();
 # Main wiki script; see design.doc
 #
 $wgRequestTime = microtime();
@@ -11,8 +11,6 @@ if(!file_exists("LocalSettings.php")) {
 }
 
 # Valid web server entry point, enable includes
-define( "MEDIAWIKI", true );
-
 require_once( "./includes/Defines.php" );
 require_once( "./LocalSettings.php" );
 require_once( "includes/Setup.php" );