Manuel:cleanupWatchlist.php
Version de MediaWiki : | ≥ 1.6 |
Fichier MediaWiki : cleanupWatchlist.php | |
---|---|
Emplacement : | maintenance/ |
Code source : | master • 1.44.0 • 1.43.3 • 1.39.13 |
Classes : | WatchlistCleanup |
Détails
Le fichier cleanupWatchlist.php est un script de maintenance pour gérer les titre cassés ou non analysables dans les listes de suivi.
Options
Option/paramètre | Description | Obligatoire |
---|---|---|
--fix | Change vraiment les titres; sinon ne fait que les chercher. | optionnel |
Utilisation
php maintenance/run.php cleanupWatchlist [ --fix ]
Dans la version MediaWiki 1.39.13 et antérieure, vous devez invoquer des scripts de maintenance à l'aide de
php maintenance/scriptName.php
au lieu de php maintenance/run.php scriptName
.Terminal
$ php maintenance/run.php cleanupWatchlist Dry run only: use --fix to enable updates Checking and fixing bad titles... Processing watchlist... invalid watch by 1 for (7, "ABC") Finished watchlist... 0 of 33 rows updated
It will only count the number of possible updates and output the result, without fixing the value. To clean up the watchlist, run the command with --fix.
Terminal
$ php maintenance/run.php cleanupWatchlist --fix Checking and fixing bad titles... Processing watchlist... invalid watch by 1 for (7, "ABC") - removed Finished watchlist... 1 of 33 rows updated