From: Sam Reed Date: Wed, 5 Oct 2011 00:49:53 +0000 (+0000) Subject: Fix undefined $title X-Git-Tag: 1.31.0-rc.0~27266 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a809a14ae860971ebd53c7c4ce192ed9d8972752;p=lhc%2Fweb%2Fwiklou.git Fix undefined $title --- diff --git a/includes/SkinLegacy.php b/includes/SkinLegacy.php index 7ff5ded681..26be2823c2 100644 --- a/includes/SkinLegacy.php +++ b/includes/SkinLegacy.php @@ -271,7 +271,8 @@ class LegacyTemplate extends BaseTemplate { /* show links to different language variants */ global $wgDisableLangConversion, $wgLang; - $lang = $this->getSkin()->getTitle()->getPageLanguage(); + $title = $this->getSkin()->getTitle(); + $lang = $title->getPageLanguage(); $variants = $lang->getVariants(); if ( !$wgDisableLangConversion && sizeof( $variants ) > 1