diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-05-16 20:58:53 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-05-16 20:58:53 +0000 |
commit | cecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch) | |
tree | 17266aa237742640aabee7856f0202317a45d540 /includes/StubObject.php | |
parent | 0bac06c301f2a83edb0236e4c2434da16848d549 (diff) |
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert
kleine Korrekturen am Design
Diffstat (limited to 'includes/StubObject.php')
-rw-r--r-- | includes/StubObject.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/StubObject.php b/includes/StubObject.php index 1501d963..894550cd 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -24,7 +24,7 @@ class StubObject { } static function isRealObject( $obj ) { - return is_object( $obj ) && !is_a( $obj, 'StubObject' ); + return is_object( $obj ) && !($obj instanceof StubObject); } function _call( $name, $args ) { @@ -35,7 +35,7 @@ class StubObject { function _newObject() { return wfCreateObject( $this->mClass, $this->mParams ); } - + function __call( $name, $args ) { return $this->_call( $name, $args ); } @@ -100,7 +100,8 @@ class StubUserLang extends StubObject { } # Validate $code - if( empty( $code ) || !preg_match( '/^[a-z]+(-[a-z]+)?$/', $code ) ) { + if( empty( $code ) || !preg_match( '/^[a-z-]+$/', $code ) ) { + wfDebug( "Invalid user language code\n" ); $code = $wgContLanguageCode; } |