X-Git-Url: http://git.cyclocoop.org/url?a=blobdiff_plain;f=maintenance%2FclearInterwikiCache.php;h=8579f0f48a195f690d0be1f3e2f154536ba8459f;hb=2d94629f3cd65d8cfe4220b672998d9127d726a6;hp=ce19974e31476c7dcf2ce09641a15268f0f61f18;hpb=59e7337ea612d03d08b67e6ada707e3d7ced738d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/clearInterwikiCache.php b/maintenance/clearInterwikiCache.php index ce19974e31..8579f0f48a 100644 --- a/maintenance/clearInterwikiCache.php +++ b/maintenance/clearInterwikiCache.php @@ -38,7 +38,7 @@ class ClearInterwikiCache extends Maintenance { public function execute() { global $wgLocalDatabases, $wgMemc; $dbr = $this->getDB( DB_REPLICA ); - $res = $dbr->select( 'interwiki', [ 'iw_prefix' ], false ); + $res = $dbr->select( 'interwiki', [ 'iw_prefix' ], '', __METHOD__ ); $prefixes = []; foreach ( $res as $row ) { $prefixes[] = $row->iw_prefix; @@ -54,5 +54,5 @@ class ClearInterwikiCache extends Maintenance { } } -$maintClass = "ClearInterwikiCache"; +$maintClass = ClearInterwikiCache::class; require_once RUN_MAINTENANCE_IF_MAIN;