From 587d3b9e9a8f60720acf2722d1722e769938d038 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Mon, 1 Dec 2003 00:09:05 +0000 Subject: [PATCH] Added missing global for $wgProfileToDatabase. --- includes/Profiling.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.20.1