r97577 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97576‎ | r97577 | r97578 >
Date:23:30, 19 September 2011
Author:aaron
Status:ok
Tags:
Comment:
MFT r97575
Modified paths:
  • /branches/wmf/1.18wmf1/includes/profiler/Profiler.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/profiler/Profiler.php
@@ -13,7 +13,7 @@
1414 */
1515 function wfProfileIn( $functionname ) {
1616 global $wgProfiler;
17 - if ( isset( $wgProfiler['class'] ) ) {
 17+ if ( $wgProfiler instanceof Profiler || isset( $wgProfiler['class'] ) ) {
1818 Profiler::instance()->profileIn( $functionname );
1919 }
2020 }
@@ -24,7 +24,7 @@
2525 */
2626 function wfProfileOut( $functionname = 'missing' ) {
2727 global $wgProfiler;
28 - if ( isset( $wgProfiler['class'] ) ) {
 28+ if ( $wgProfiler instanceof Profiler || isset( $wgProfiler['class'] ) ) {
2929 Profiler::instance()->profileOut( $functionname );
3030 }
3131 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97575Back-compat for $wgProfiler set as a class. Fix for r89206demon23:25, 19 September 2011

Status & tagging log