X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupInvalidDbKeys.php;h=536e6dbe10bb67106cf9cc3c5f4468a6df84da60;hb=13832025a46df3e0edd658dfb756159c2c5ac722;hp=abae4f4379fcce9daef45dcf6d6d78a6c88a07a3;hpb=68b12dfded60597652212fd05df062e45784115f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupInvalidDbKeys.php b/maintenance/cleanupInvalidDbKeys.php index abae4f4379..536e6dbe10 100644 --- a/maintenance/cleanupInvalidDbKeys.php +++ b/maintenance/cleanupInvalidDbKeys.php @@ -87,7 +87,8 @@ TEXT $this->outputStatus( 'Done!' ); if ( $this->hasOption( 'fix' ) ) { - $this->outputStatus( ' Cleaned up invalid DB keys on ' . wfWikiID() . "!\n" ); + $dbDomain = WikiMap::getCurrentWikiDbDomain()->getId(); + $this->outputStatus( " Cleaned up invalid DB keys on $dbDomain!\n" ); } } @@ -121,8 +122,7 @@ TEXT * @param array $tableParams A child array of self::$tables */ protected function cleanupTable( $tableParams ) { - $table = $tableParams[0]; - $prefix = $tableParams[1]; + list( $table, $prefix ) = $tableParams; $idField = $tableParams['idField'] ?? "{$prefix}_id"; $nsField = $tableParams['nsField'] ?? "{$prefix}_namespace"; $titleField = $tableParams['titleField'] ?? "{$prefix}_title";