Fixed notice due to main-cleanup being entered at level 0
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 27 Aug 2004 13:42:09 +0000 (13:42 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 27 Aug 2004 13:42:09 +0000 (13:42 +0000)
includes/Profiling.php

index a07adac..6a59152 100755 (executable)
@@ -58,7 +58,7 @@ class Profiler
                global $wgDebugProfiling, $wgDebugFunctionEntry;
 
                if ( $wgDebugFunctionEntry && function_exists( 'wfDebug' ) ) {
-                       wfDebug( str_repeat( ' ', count( $this->mWorkStack ) - 1 ) . 'Exiting '.$functionname."\n" );
+                       wfDebug( str_repeat( ' ', count( $this->mWorkStack ) ) . 'Exiting '.$functionname."\n" );
                }
                
                $bit = array_pop( $this->mWorkStack );