r5319 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5318‎ | r5319 | r5320 >
Date:05:27, 20 September 2004
Author:jeluf
Status:old
Tags:
Comment:
Fixed broken code.
> PLEASE TEST YOUR PATCHES BEFORE COMMITTING THEM
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -2025,7 +2025,7 @@
20262026 global $wgUser;
20272027
20282028 // if user logged in, get in from user's preference
2029 - if($wguser->getID()!=0)
 2029+ if($wgUser->getID()!=0)
20302030 return $wgUser->getOption('variant');
20312031
20322032 // if we have multiple variants for this langauge,
@@ -2036,7 +2036,7 @@
20372037
20382038 // otherwise there should really be just one variant,
20392039 // get it from the class name
2040 - $lang = strtolower(substr(class_name($this), 8));
 2040+ $lang = strtolower(substr(get_class($this), 8));
20412041 return $lang;
20422042 }
20432043 }

Status & tagging log