X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FclearInterwikiCache.php;h=13b239fd84fe036a71fd5ed336301e1b486c6b13;hb=2f7b7289ccd895b5c23d336459f27c00c19c8204;hp=80c9004e43eaee48b8f2d48f923eacb42d311639;hpb=8734fe02b84c0fdd6fa53454b23ce9239b50dc75;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/clearInterwikiCache.php b/maintenance/clearInterwikiCache.php index 80c9004e43..13b239fd84 100644 --- a/maintenance/clearInterwikiCache.php +++ b/maintenance/clearInterwikiCache.php @@ -32,14 +32,14 @@ class ClearInterwikiCache extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Clear all interwiki links for all languages from the cache"; + $this->addDescription( 'Clear all interwiki links for all languages from the cache' ); } public function execute() { global $wgLocalDatabases, $wgMemc; - $dbr = wfGetDB( DB_SLAVE ); - $res = $dbr->select( 'interwiki', array( 'iw_prefix' ), false ); - $prefixes = array(); + $dbr = $this->getDB( DB_SLAVE ); + $res = $dbr->select( 'interwiki', [ 'iw_prefix' ], false ); + $prefixes = []; foreach ( $res as $row ) { $prefixes[] = $row->iw_prefix; }