From: Antoine Musso Date: Mon, 12 Feb 2007 20:18:05 +0000 (+0000) Subject: Fix #8944: The deprecated is_a() function is used in StubObjects.php X-Git-Tag: 1.31.0-rc.0~54056 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=70a270421a4b640714a28d21228d3772a5ddcb5f;p=lhc%2Fweb%2Fwiklou.git Fix #8944: The deprecated is_a() function is used in StubObjects.php --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7f2c3a1378..cc80d41bf0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -184,6 +184,7 @@ lighter making things easier to read. of other tables while they work. * Message names changed for AlphabeticPager introduced with r19758 for better localisations. +* (bug8944) The deprecated is_a() function is used in StubObjects.php == Languages updated == diff --git a/includes/StubObject.php b/includes/StubObject.php index 1501d96320..18c77267a1 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 ) && !(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 ); }