X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildSitesCache.php;h=230e86d48a5f1778c859cfdb37a9d91b969356ae;hb=f14c11f1b517ac656923f4a47a05ce5162109afb;hp=2bc751081ac1eafea5fcb322c85bbef685ff34b6;hpb=dabf4e9b833fed9942bd5a7c950893a54e43b0a3;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildSitesCache.php b/maintenance/rebuildSitesCache.php index 2bc751081a..230e86d48a 100644 --- a/maintenance/rebuildSitesCache.php +++ b/maintenance/rebuildSitesCache.php @@ -32,13 +32,13 @@ class RebuildSitesCache extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Cache sites as json for file-based lookup."; + $this->addDescription( 'Cache sites as json for file-based lookup.' ); $this->addOption( 'file', 'File to output the json to', false, true ); } public function execute() { $sitesCacheFileBuilder = new SitesCacheFileBuilder( - new DBSiteStore(), + \MediaWiki\MediaWikiServices::getInstance()->getSiteLookup(), $this->getCacheFile() );