Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -150,6 +150,7 @@ |
151 | 151 | public static $wsLoginToken = ''; |
152 | 152 | public static $wsLoginFormAction = ''; |
153 | 153 | public static $isFilePage; |
| 154 | + public static $logoutHtml; |
154 | 155 | |
155 | 156 | public static $messageKeys = array( |
156 | 157 | 'mobile-frontend-show-button', |
— | — | @@ -1316,7 +1317,7 @@ |
1317 | 1318 | |
1318 | 1319 | if ( $ptLogout ) { |
1319 | 1320 | $ptLogoutLink = $ptLogout->firstChild; |
1320 | | - $logoutHtml = $this->doc->saveXML( $ptLogoutLink, LIBXML_NOEMPTYTAG ); |
| 1321 | + self::$logoutHtml = $this->doc->saveXML( $ptLogoutLink, LIBXML_NOEMPTYTAG ); |
1321 | 1322 | } |
1322 | 1323 | |
1323 | 1324 | if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) { |
— | — | @@ -1517,7 +1518,7 @@ |
1518 | 1519 | public function getFooterTemplate() { |
1519 | 1520 | wfProfileIn( __METHOD__ ); |
1520 | 1521 | $footerTemplate = new FooterTemplate(); |
1521 | | - $logoutHtml = ( !empty( $logoutHtml ) ) ? $logoutHtml : ''; |
| 1522 | + $logoutHtml = ( !empty( self::$logoutHtml ) ) ? self::$logoutHtml : ''; |
1522 | 1523 | $options = array( |
1523 | 1524 | 'messages' => self::$messages, |
1524 | 1525 | 'leaveFeedbackURL' => self::$leaveFeedbackURL, |