http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89557

Revision: 89557
Author:   catrope
Date:     2011-06-06 11:54:51 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
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: 
branches/wmf/1.17wmf1/extensions/WikimediaIncubator/SpecialViewUserLang.php
===================================================================
--- branches/wmf/1.17wmf1/extensions/WikimediaIncubator/SpecialViewUserLang.php 
2011-06-06 11:10:23 UTC (rev 89556)
+++ branches/wmf/1.17wmf1/extensions/WikimediaIncubator/SpecialViewUserLang.php 
2011-06-06 11:54:51 UTC (rev 89557)
@@ -67,8 +67,8 @@
         * @param $target Mixed: user whose language and test wiki we're 
looking up
         */
        function showInfo( $target ) {
-               global $wgOut, $wmincPref, $wmincProjectSite;
-               $sk = $this->getSkin();
+               global $wgOut, $wmincPref, $wmincProjectSite, $wgUser;
+               $sk = $wgUser->getSkin();
                $user = User::newFromName( $target );
                $langNames = Language::getLanguageNames();
                if ( $user == null || $user->getId() == 0 ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to