Show a warning when users are about to create or edit a page that the
titleblacklist prevents most users from creating or editing.
Bug: 13780
Change-Id: I0e3c08d026e415c31c792dffbb6bb300c7f1fd9c
This adds a log, Special:Log/titleblacklist.
Since titleblacklist hits when editing or moving
can be triggered with GET, they are not logged.
(i.e. only local account creations are logged)
Bug: 21206
Change-Id: I1b7396cebaa528edca043d5d3dfbf9d950d0e116
Add lua method mw.ext.TitleBlacklist.test(action, title), which tests
whether a titleblacklist entry is active for a given title and action, and
if so, returns details of the entry.
Change-Id: I4360d1ad4e602d58dabd12b683d338a0e09a2950
* Name all sources and track them inside the entries. This should be
fully backwards-compatible with previous configuration format,
since numbers may be a legitimate source names as well.
* Introduce $wgTitleBlacklistUsernameSources as a variable which allows
to specify which sources may be used for filtering usernames.
Change-Id: Ia2702370c85f317c763e345c8f92cb38e23e4196
other extensions by handling the 'AbortAutoAccount' hook, similar to the
'AbortNewAccount' triggered by explicit account creations. (They are separate
to avoid loops and confusion; auth plugins like CentralAuth need to handle
AbortNewAccount separately.
Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.
Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.
Aug 8 23:22:25 srv35 httpd[5547]: PHP Fatal error: Using $this when not in object context in /home/wikipedia/common/php-1.5/extensions/TitleBlacklist/TitleBlacklist.list.php on line 98
Fatal error: Call to private method TitleBlacklist::parseBlacklist() from context 'TitleBlacklistHooks' in /Library/WebServer/Documents/trunk/extensions/TitleBlacklist/TitleBlacklist.hooks.php on line 90
UsernameBlacklist extension is unmaintained, rather brittle, and only
supports a single local blacklist, and also on most wikis both
blacklists will be closely intertwined if not identical, it seems
logical that TitleBlacklist take over both functions. :)
* Invalidate cached blacklist after save completion of MediaWiki:Titleblacklist rather than during edit filtering. Should help avoid race conditions which would leave you with the old version cached.
* Some minor whitespace & style cleanup
* Some output escaping cleanup