r89557 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89556‎ | r89557 | r89558 >
Date:11:54, 6 June 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: Live hack WikimediaIncubator to work around the fact that SpecialPage::getSkin() doesn't exist in 1.17wmf1
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/WikimediaIncubator/SpecialViewUserLang.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/WikimediaIncubator/SpecialViewUserLang.php
@@ -67,8 +67,8 @@
6868 * @param $target Mixed: user whose language and test wiki we're looking up
6969 */
7070 function showInfo( $target ) {
71 - global $wgOut, $wmincPref, $wmincProjectSite;
72 - $sk = $this->getSkin();
 71+ global $wgOut, $wmincPref, $wmincProjectSite, $wgUser;
 72+ $sk = $wgUser->getSkin();
7373 $user = User::newFromName( $target );
7474 $langNames = Language::getLanguageNames();
7575 if ( $user == null || $user->getId() == 0 ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r89563Two fixes for older MediaWiki versions...robin14:23, 6 June 2011

Status & tagging log