summaryrefslogtreecommitdiff
path: root/includes/StubObject.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-02-02 07:54:46 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-02-02 07:54:46 +0100
commit3bddedf685051638fdba61268ad195fee041db1c (patch)
tree93ed42491453fef8fe0614d2620146b8b603db1d /includes/StubObject.php
parent8f93926e1bc6e96fc11b4d0d201025022d471de7 (diff)
update to MediaWiki 1.16.2
Diffstat (limited to 'includes/StubObject.php')
-rw-r--r--includes/StubObject.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/StubObject.php b/includes/StubObject.php
index c8731fff..52fbeb24 100644
--- a/includes/StubObject.php
+++ b/includes/StubObject.php
@@ -152,7 +152,7 @@ class StubUserLang extends StubObject {
$code = strtolower( $code );
# Validate $code
- if( empty( $code ) || !preg_match( '/^[a-z-]+$/', $code ) || ( $code === 'qqq' ) ) {
+ if( empty( $code ) || !Language::isValidCode( $code ) || ( $code === 'qqq' ) ) {
wfDebug( "Invalid user language code\n" );
$code = $wgContLanguageCode;
}