X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FclearInterwikiCache.php;h=4b5773c59c32066aa63e69921abeb2777ac5e20c;hb=cf9fc81e9669b6c016c044de57ad2bdd5113d167;hp=80c9004e43eaee48b8f2d48f923eacb42d311639;hpb=7ab280ca486e3fef0fd1cbdbc18017d9455f04a1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/clearInterwikiCache.php b/maintenance/clearInterwikiCache.php index 80c9004e43..4b5773c59c 100644 --- a/maintenance/clearInterwikiCache.php +++ b/maintenance/clearInterwikiCache.php @@ -32,12 +32,12 @@ 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 ); + $dbr = $this->getDB( DB_SLAVE ); $res = $dbr->select( 'interwiki', array( 'iw_prefix' ), false ); $prefixes = array(); foreach ( $res as $row ) {