X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FupdateSearchIndex.php;h=0216b28c879e126dab2f05dd84fc81c2ee861eed;hb=6cfb2e3d7a2b96d5041312fcec88248bb46573d7;hp=cdb7d9f701be7532506567a1bdb7d48db40a7878;hpb=c8d361a38027ef5d808225b8a83f15417248aa67;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;