From: addshore Date: Wed, 5 Oct 2016 09:46:50 +0000 (+0100) Subject: ObjectCache::newFromParams fix SqlBagOStuff backcompat X-Git-Tag: 1.31.0-rc.0~5196^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=b63b3ce0369f82a9d47c69a6b3572662340c79f5;p=lhc%2Fweb%2Fwiklou.git ObjectCache::newFromParams fix SqlBagOStuff backcompat Bug: T147407 Change-Id: I718d01b309d96deeb9f7aa1fdcdee9f824657f9d --- diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php index d81f9e13cb..00e67cac63 100644 --- a/includes/objectcache/ObjectCache.php +++ b/includes/objectcache/ObjectCache.php @@ -190,7 +190,7 @@ class ObjectCache { ? $params['reportDupes'] : true; // Do b/c logic for SqlBagOStuff - if ( is_subclass_of( $class, SqlBagOStuff::class ) ) { + if ( is_a( $class, SqlBagOStuff::class, true ) ) { if ( isset( $params['server'] ) && !isset( $params['servers'] ) ) { $params['servers'] = [ $params['server'] ]; unset( $params['server'] );