r86626 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86625‎ | r86626 | r86627 >
Date:15:53, 21 April 2011
Author:ialex
Status:ok
Tags:
Comment:
Use Profiler::instance() instead of $wgProfiler
Modified paths:
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -140,12 +140,10 @@
141141 global $wgMaxCredits, $wgShowCreditsIfMax;
142142 global $wgPageShowWatchingUsers;
143143 global $wgUseTrackbacks, $wgUseSiteJs, $wgDebugComments;
144 - global $wgArticlePath, $wgScriptPath, $wgServer, $wgProfiler;
 144+ global $wgArticlePath, $wgScriptPath, $wgServer;
145145
146146 wfProfileIn( __METHOD__ );
147 - if ( is_object( $wgProfiler ) ) {
148 - $wgProfiler->setTemplated( true );
149 - }
 147+ Profiler::instance()->setTemplated( true );
150148
151149 $oldid = $wgRequest->getVal( 'oldid' );
152150 $diff = $wgRequest->getVal( 'diff' );

Status & tagging log