Index: trunk/phase3/includes/SkinLegacy.php |
— | — | @@ -271,7 +271,8 @@ |
272 | 272 | /* show links to different language variants */ |
273 | 273 | global $wgDisableLangConversion, $wgLang; |
274 | 274 | |
275 | | - $lang = $this->getSkin()->getTitle()->getPageLanguage(); |
| 275 | + $title = $this->getSkin()->getTitle(); |
| 276 | + $lang = $title->getPageLanguage(); |
276 | 277 | $variants = $lang->getVariants(); |
277 | 278 | |
278 | 279 | if ( !$wgDisableLangConversion && sizeof( $variants ) > 1 |