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