Podręcznik:CleanupWatchlist.php
Appearance
| Wersja MediaWiki: | ≥ 1.6 |
| Plik MediaWiki: cleanupWatchlist.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| Klasy: | WatchlistCleanup |
Szczegóły
cleanupWatchlist.php file is a maintenance script to clean up broken, unparseable titles in the watchlist.
Options
| Opcja/Parametr | Opis | Required? |
|---|---|---|
| --fix | Actually clean up titles; otherwise just checks for them. | Optional |
Użycie
php maintenance/run.php cleanupWatchlist [ --fix ]
W wersji MediaWiki MediaWiki 1.39 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez
php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.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