Index: trunk/phase3/languages/Language.php |
— | — | @@ -2025,7 +2025,7 @@ |
2026 | 2026 | global $wgUser; |
2027 | 2027 | |
2028 | 2028 | // if user logged in, get in from user's preference |
2029 | | - if($wguser->getID()!=0) |
| 2029 | + if($wgUser->getID()!=0) |
2030 | 2030 | return $wgUser->getOption('variant'); |
2031 | 2031 | |
2032 | 2032 | // if we have multiple variants for this langauge, |
— | — | @@ -2036,7 +2036,7 @@ |
2037 | 2037 | |
2038 | 2038 | // otherwise there should really be just one variant, |
2039 | 2039 | // get it from the class name |
2040 | | - $lang = strtolower(substr(class_name($this), 8)); |
| 2040 | + $lang = strtolower(substr(get_class($this), 8)); |
2041 | 2041 | return $lang; |
2042 | 2042 | } |
2043 | 2043 | } |