Fix completely broken profiling change
[lhc/web/wiklou.git] / profileinfo.php
index 032df3f..d1cf853 100644 (file)
@@ -1,3 +1,15 @@
+<?php
+ini_set( 'zlib.output_compression', 'off' );
+
+$wgDBadminuser = $wgDBadminpassword = $wgDBserver = $wgDBname = $wgDBprefix = false;
+$wgEnableProfileInfo = $wgProfileToDatabase = false;
+
+define( 'MW_NO_SETUP', 1 );
+require_once( './includes/WebStart.php' );
+@include_once( './AdminSettings.php' );
+require_once( './includes/GlobalFunctions.php' );
+
+?>
 <!--
      Show profiling data.
 
 <body>
 <?php
 
-$wgDBadminuser = $wgDBadminpassword = $wgDBserver = $wgDBname = $wgEnableProfileInfo = $wgDBprefix = false;
-
-define( 'MW_NO_SETUP', 1 );
-require_once( './includes/WebStart.php' );
-require_once("./AdminSettings.php");
-require_once( './includes/GlobalFunctions.php' );
-
 if (!$wgEnableProfileInfo) {
        echo "disabled\n";
        exit( 1 );