Fix #8944: The deprecated is_a() function is used in StubObjects.php
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 12 Feb 2007 20:18:05 +0000 (20:18 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 12 Feb 2007 20:18:05 +0000 (20:18 +0000)
RELEASE-NOTES
includes/StubObject.php

index 7f2c3a1..cc80d41 100644 (file)
@@ -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 ==
 
index 1501d96..18c7726 100644 (file)
@@ -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 );
        }