r111383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111382‎ | r111383 | r111384 >
Date:16:21, 13 February 2012
Author:maxsem
Status:ok
Tags:
Comment:
Fixed deprecated function usage
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php
@@ -218,7 +218,7 @@
219219 self::$currentURL = $wgRequest->getFullRequestURL();
220220 self::$leaveFeedbackURL = $wgRequest->escapeAppendQuery( 'mobileaction=leave_feedback' );
221221
222 - $skin = $wgUser->getSkin();
 222+ $skin = RequestContext::getMain()->getSkin();
223223 $copyright = $skin->getCopyright();
224224 if ( stristr( $copyright, '<li class="noprint">' ) !== false ) {
225225 $copyright = '<ul id="footer-info"><li>' . $copyright . '</li></ul>';

Status & tagging log