Index: trunk/phase3/includes/Title.php |
— | — | @@ -67,7 +67,6 @@ |
68 | 68 | var $mRedirect = null; // /< Is the article at this title a redirect? |
69 | 69 | var $mNotificationTimestamp = array(); // /< Associative array of user ID -> timestamp/false |
70 | 70 | var $mBacklinkCache = null; // /< Cache of links to this title |
71 | | - var $mPageLanguage; |
72 | 71 | // @} |
73 | 72 | |
74 | 73 | |
— | — | @@ -4231,16 +4230,16 @@ |
4232 | 4231 | */ |
4233 | 4232 | public function getPageLanguage() { |
4234 | 4233 | global $wgContLang; |
4235 | | - $this->mPageLanguage = $wgContLang; |
| 4234 | + $pageLang = $wgContLang; |
4236 | 4235 | if ( $this->isCssOrJsPage() ) { |
4237 | 4236 | // css/js should always be LTR and is, in fact, English |
4238 | | - $this->mPageLanguage = Language::factory( 'en' ); |
| 4237 | + $pageLang = wfGetLangObj( 'en' ); |
4239 | 4238 | } elseif ( $this->getNamespace() == NS_MEDIAWIKI ) { |
4240 | 4239 | // Parse mediawiki messages with correct target language |
4241 | 4240 | list( /* $unused */, $lang ) = MessageCache::singleton()->figureMessage( $this->getText() ); |
4242 | | - $this->mPageLanguage = wfGetLangObj( $lang ); |
| 4241 | + $pageLang = wfGetLangObj( $lang ); |
4243 | 4242 | } |
4244 | | - return $this->mPageLanguage; |
| 4243 | + return $pageLang; |
4245 | 4244 | } |
4246 | 4245 | } |
4247 | 4246 | |