From: Mr. E23 Date: Mon, 1 Dec 2003 00:09:05 +0000 (+0000) Subject: Added missing global for $wgProfileToDatabase. X-Git-Tag: 1.1.0~41 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=587d3b9e9a8f60720acf2722d1722e769938d038;p=lhc%2Fweb%2Fwiklou.git Added missing global for $wgProfileToDatabase. --- diff --git a/includes/Profiling.php b/includes/Profiling.php index b25b66794e..1bdf3fb457 100755 --- a/includes/Profiling.php +++ b/includes/Profiling.php @@ -47,7 +47,7 @@ class Profiler function profileOut( $functionname) { - global $wgDebugProfiling, $wgDebugFunctionEntry, $wgProfileToDatabase; + global $wgDebugProfiling, $wgDebugFunctionEntry; if ( $wgDebugFunctionEntry && function_exists( "wfDebug" ) ) { wfDebug( "Exiting $functionname\n" ); @@ -128,6 +128,7 @@ class Profiler $prof .= sprintf( $format, $fname, $calls, (float)($elapsed * 1000), (float)($elapsed * 1000) / $calls, $percent ); + global $wgProfileToDatabase; if( $wgProfileToDatabase ) { Profiler::logToDB( $fname, (float)($elapsed * 1000), $calls ); }