X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FclearInterwikiCache.php;h=13b239fd84fe036a71fd5ed336301e1b486c6b13;hb=2f7b7289ccd895b5c23d336459f27c00c19c8204;hp=6a6527f5272726b232d9f010d174b41bde746b0b;hpb=77a8bbd406de8194432bbc92ce0b781ba44b43bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/clearInterwikiCache.php b/maintenance/clearInterwikiCache.php index 6a6527f527..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 = $this->getDB( DB_SLAVE ); - $res = $dbr->select( 'interwiki', array( 'iw_prefix' ), false ); - $prefixes = array(); + $res = $dbr->select( 'interwiki', [ 'iw_prefix' ], false ); + $prefixes = []; foreach ( $res as $row ) { $prefixes[] = $row->iw_prefix; }