diff options
Diffstat (limited to 'includes/StubObject.php')
-rw-r--r-- | includes/StubObject.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/StubObject.php b/includes/StubObject.php index e27f0b25..f1847a39 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -154,7 +154,7 @@ class StubUserLang extends StubObject { } # Validate $code - if( empty( $code ) || !preg_match( '/^[a-z-]+$/', $code ) ) { + if( empty( $code ) || !preg_match( '/^[a-z-]+$/', $code ) || ( $code === 'qqq' ) ) { wfDebug( "Invalid user language code\n" ); $code = $wgContLanguageCode; } |