MediaWiki version:
1.6
MediaWiki file: cleanupWatchlist.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: WatchlistCleanup

Details

cleanupWatchlist.php file is a maintenance script to clean up broken, unparseable titles in the watchlist.

Options

Option/Parameter Description Required
--fix Actually clean up titles; otherwise just checks for them.Optional

Usage

php maintenance/cleanupWatchlist.php [ --fix ]
Terminal
$ php maintenance/cleanupWatchlist.php

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/cleanupWatchlist.php --fix

Checking and fixing bad titles...
Processing watchlist...
invalid watch by 1 for (7, "ABC")
- removed
Finished watchlist... 1 of 33 rows updated

See also

  • Help:Watchlist
  • Manual:Watchlist table
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.