X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FclearInterwikiCache.php;h=ce19974e31476c7dcf2ce09641a15268f0f61f18;hb=e39699f90f696dc589878cd6038a3de97b70ca89;hp=4b5773c59c32066aa63e69921abeb2777ac5e20c;hpb=b67ab9de01a2eb95875d27a26eb9c30b22edf97e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/clearInterwikiCache.php b/maintenance/clearInterwikiCache.php index 4b5773c59c..ce19974e31 100644 --- a/maintenance/clearInterwikiCache.php +++ b/maintenance/clearInterwikiCache.php @@ -37,9 +37,9 @@ class ClearInterwikiCache extends Maintenance { public function execute() { global $wgLocalDatabases, $wgMemc; - $dbr = $this->getDB( DB_SLAVE ); - $res = $dbr->select( 'interwiki', array( 'iw_prefix' ), false ); - $prefixes = array(); + $dbr = $this->getDB( DB_REPLICA ); + $res = $dbr->select( 'interwiki', [ 'iw_prefix' ], false ); + $prefixes = []; foreach ( $res as $row ) { $prefixes[] = $row->iw_prefix; }