r106154 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106153‎ | r106154 | r106155 >
Date:01:24, 14 December 2011
Author:preilly
Status:ok
Tags:
Comment:
1.18wmf1: MFT r106153
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -150,6 +150,7 @@
151151 public static $wsLoginToken = '';
152152 public static $wsLoginFormAction = '';
153153 public static $isFilePage;
 154+ public static $logoutHtml;
154155
155156 public static $messageKeys = array(
156157 'mobile-frontend-show-button',
@@ -1316,7 +1317,7 @@
13171318
13181319 if ( $ptLogout ) {
13191320 $ptLogoutLink = $ptLogout->firstChild;
1320 - $logoutHtml = $this->doc->saveXML( $ptLogoutLink, LIBXML_NOEMPTYTAG );
 1321+ self::$logoutHtml = $this->doc->saveXML( $ptLogoutLink, LIBXML_NOEMPTYTAG );
13211322 }
13221323
13231324 if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) {
@@ -1517,7 +1518,7 @@
15181519 public function getFooterTemplate() {
15191520 wfProfileIn( __METHOD__ );
15201521 $footerTemplate = new FooterTemplate();
1521 - $logoutHtml = ( !empty( $logoutHtml ) ) ? $logoutHtml : '';
 1522+ $logoutHtml = ( !empty( self::$logoutHtml ) ) ? self::$logoutHtml : '';
15221523 $options = array(
15231524 'messages' => self::$messages,
15241525 'leaveFeedbackURL' => self::$leaveFeedbackURL,

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106153fix logout linkpreilly01:23, 14 December 2011

Status & tagging log