http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97577

Revision: 97577
Author:   aaron
Date:     2011-09-19 23:30:55 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
MFT r97575

Modified Paths:
--------------
    branches/wmf/1.18wmf1/includes/profiler/Profiler.php

Modified: branches/wmf/1.18wmf1/includes/profiler/Profiler.php
===================================================================
--- branches/wmf/1.18wmf1/includes/profiler/Profiler.php        2011-09-19 
23:25:55 UTC (rev 97576)
+++ branches/wmf/1.18wmf1/includes/profiler/Profiler.php        2011-09-19 
23:30:55 UTC (rev 97577)
@@ -13,7 +13,7 @@
  */
 function wfProfileIn( $functionname ) {
        global $wgProfiler;
-       if ( isset( $wgProfiler['class'] ) ) {
+       if ( $wgProfiler instanceof Profiler || isset( $wgProfiler['class'] ) ) 
{
                Profiler::instance()->profileIn( $functionname );
        }
 }
@@ -24,7 +24,7 @@
  */
 function wfProfileOut( $functionname = 'missing' ) {
        global $wgProfiler;
-       if ( isset( $wgProfiler['class'] ) ) {
+       if ( $wgProfiler instanceof Profiler || isset( $wgProfiler['class'] ) ) 
{
                Profiler::instance()->profileOut( $functionname );
        }
 }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to