From 70a270421a4b640714a28d21228d3772a5ddcb5f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 12 Feb 2007 20:18:05 +0000 Subject: [PATCH] Fix #8944: The deprecated is_a() function is used in StubObjects.php --- RELEASE-NOTES | 1 + includes/StubObject.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 ); } -- 2.20.1