r98966 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98965‎ | r98966 | r98967 >
Date:00:49, 5 October 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix undefined $title
Modified paths:
  • /trunk/phase3/includes/SkinLegacy.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinLegacy.php
@@ -271,7 +271,8 @@
272272 /* show links to different language variants */
273273 global $wgDisableLangConversion, $wgLang;
274274
275 - $lang = $this->getSkin()->getTitle()->getPageLanguage();
 275+ $title = $this->getSkin()->getTitle();
 276+ $lang = $title->getPageLanguage();
276277 $variants = $lang->getVariants();
277278
278279 if ( !$wgDisableLangConversion && sizeof( $variants ) > 1

Status & tagging log