From a809a14ae860971ebd53c7c4ce192ed9d8972752 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 5 Oct 2011 00:49:53 +0000 Subject: [PATCH] Fix undefined $title --- includes/SkinLegacy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1