r60797 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60796‎ | r60797 | r60798 >
Date:18:02, 7 January 2010
Author:philip
Status:ok
Tags:
Comment:
Fix the undefined variable and undefined property notices caused by r60763.
Modified paths:
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageConverter.php
@@ -30,6 +30,7 @@
3131 var $mFlags;
3232 var $mDescCodeSep = ':', $mDescVarSep = ';';
3333 var $mUcfirst = false;
 34+ var $mHeaderVariant;
3435
3536 const CACHE_VERSION_KEY = 'VERSION 6';
3637
@@ -543,7 +544,8 @@
544545 * @return string converted text
545546 * @public
546547 */
547 - function convert( $text ) {
 548+ function convert( $text, $isTitle ) {
 549+ global $wgDisableLangConversion;
548550 if ( $wgDisableLangConversion ) return $text;
549551
550552 $plang = $this->getPreferredVariant();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60763Refactor LanguageConversion so that title conversion isn't so flimsy. Pull Ma...mah04:13, 7 January 2010

Status & tagging log