X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateSearchIndex.php;h=0216b28c879e126dab2f05dd84fc81c2ee861eed;hb=5b8a12363dea7640a9e59234cd64d5b890762982;hp=cdb7d9f701be7532506567a1bdb7d48db40a7878;hpb=91d40b872f960d2b53a4d9dd2a8b77f953f6ff41;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateSearchIndex.php b/maintenance/updateSearchIndex.php index cdb7d9f701..0216b28c87 100644 --- a/maintenance/updateSearchIndex.php +++ b/maintenance/updateSearchIndex.php @@ -61,7 +61,8 @@ class UpdateSearchIndex extends Maintenance { } public function execute() { - $posFile = $this->getOption( 'p', 'searchUpdate.' . wfWikiID() . '.pos' ); + $dbDomain = WikiMap::getCurrentWikiDbDomain()->getId(); + $posFile = $this->getOption( 'p', 'searchUpdate.' . rawurlencode( $dbDomain ) . '.pos' ); $end = $this->getOption( 'e', wfTimestampNow() ); if ( $this->hasOption( 's' ) ) { $start = $this->getOption( 's' ); @@ -121,5 +122,5 @@ class UpdateSearchIndex extends Maintenance { } } -$maintClass = "UpdateSearchIndex"; +$maintClass = UpdateSearchIndex::class; require_once RUN_MAINTENANCE_IF_MAIN;