Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -140,12 +140,10 @@ |
141 | 141 | global $wgMaxCredits, $wgShowCreditsIfMax; |
142 | 142 | global $wgPageShowWatchingUsers; |
143 | 143 | global $wgUseTrackbacks, $wgUseSiteJs, $wgDebugComments; |
144 | | - global $wgArticlePath, $wgScriptPath, $wgServer, $wgProfiler; |
| 144 | + global $wgArticlePath, $wgScriptPath, $wgServer; |
145 | 145 | |
146 | 146 | wfProfileIn( __METHOD__ ); |
147 | | - if ( is_object( $wgProfiler ) ) { |
148 | | - $wgProfiler->setTemplated( true ); |
149 | | - } |
| 147 | + Profiler::instance()->setTemplated( true ); |
150 | 148 | |
151 | 149 | $oldid = $wgRequest->getVal( 'oldid' ); |
152 | 150 | $diff = $wgRequest->getVal( 'diff' ); |