Commit graph

31 commits

Author SHA1 Message Date
Matěj Grabovský 106f773cf8 TitleBlacklist extension fixes:
* fixed user creation error when user name was invalid title in main namespace;
* fixed error message rendering when creating user with invalid name;
* employed the Html class;
* made code a little more consistent.
2010-08-12 08:38:05 +00:00
Liangent 0991609047 Remove an unused global 2010-06-08 04:34:31 +00:00
Neil Kandalgaonkar 12cdc370b4 this global was lost in change 67347 2010-06-07 18:47:18 +00:00
Alexandre Emsenhuber c52acec944 Big changes to extensions' documentation:
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Liangent 0dd93b246d Use the hook CentralAuthAutoCreate to prevent blacklisted user names to be created from global users 2010-06-04 13:36:29 +00:00
Chad Horohoe 85c4e63e2a Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh. 2010-05-27 15:56:53 +00:00
Chad Horohoe 69251815ff Large commit. Removed 800+ references to no-op wfLoadExtensionMessages() 2010-05-26 22:25:32 +00:00
Siebrand Mazeland 0b5e17ad2a Switch parameters $2 and $3 for 'titleblacklist-forbidden-move' to fit the message ""$2" cannot be moved to "$3", because the title "$3" has been banned from creation." 2009-01-18 14:42:07 +00:00
Victor Vasiliev 4c02593d76 Fix fatal exceptions. 2008-09-15 16:33:40 +00:00
Fran Rogers 36b3f39d20 Block redirects to blacklisted nonexistent titles as well. 2008-09-14 01:44:04 +00:00
Fran Rogers 85d29ce237 self-rv; mixed up diffs 2008-09-14 01:43:21 +00:00
Fran Rogers dc41069d3c Block redirects to blacklisted nonexistent titles as well. 2008-09-14 01:39:00 +00:00
Fran Rogers 97a9812b69 Fixes for problems mentioned in r38967 2008-08-09 01:54:39 +00:00
Brion Vibber 1c2794eb00 Revert r38636 and following for now, doesn't work at present.
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
2008-08-08 23:26:44 +00:00
Fran Rogers 129796f76b Added username blacklist capabilities to TitleBlacklist. Since the
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. :)
2008-08-05 15:57:10 +00:00
Ilmari Karonen afac00b084 Remove verifyUpload hook, just check images using the normal userCan hook. This closes a loophole that allowed creation of blacklisted image pages via normal editing. Note that combining this version with MediaWiki revisions prior to r35167 breaks the 'reupload' option and produces uninformative output for blacklisted uploads. 2008-05-22 01:35:48 +00:00
Bryan Tong Minh b89489091c (bug 13803) Add 'reupload' parameter to allow reuploads of existing blacklisted images. 2008-04-20 21:21:16 +00:00
Victor Vasiliev 20d85b52f9 Output pretty message on forbidden uploads 2008-03-15 08:23:54 +00:00
Victor Vasiliev f883ab0abd Create object when necessary 2008-02-01 14:24:59 +00:00
Victor Vasiliev fbbf496af1 * Delay message loading 2008-01-14 14:08:49 +00:00
Siebrand Mazeland d942c258ba (bug 12608) Unifying the spelling of getDBkey() in the extension code. 2008-01-14 10:09:08 +00:00
Niklas Laxström c8bc2845f3 * Delay message loading 2008-01-10 23:16:48 +00:00
Niklas Laxström 648a7b824a * Converted to UTF-8 2007-12-31 10:03:10 +00:00
Brion Vibber d97448856c * Use UTF-8 option on regex matches, not just validation. Fixes case-insensitivity and character class matches for non-ASCII chars.
* 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
2007-12-29 04:23:57 +00:00
Victor Vasiliev 6899511efe Fix logic 2007-12-27 13:05:16 +00:00
Victor Vasiliev e0c312c5fd Validate MediaWiki:TitleBlacklist and delete it from cache before saving 2007-12-23 09:47:36 +00:00
Victor Vasiliev 6dc375766b TitleBlacklist:
* Add errmsg option
* Some cleanup
2007-12-17 18:38:34 +00:00
Victor Vasiliev 281c040bd2 TitleBlacklist:
Use a better hook (getUserPermissionsErrors)
2007-12-15 06:16:19 +00:00
Victor Vasiliev d6a7b33f91 TitleBlacklist:
* Add TitleBlacklistEntry class
* Add entry attributes
* Temporary remove error message for userCan. Needs better hook
* Changed configuration structure
2007-12-10 19:02:38 +00:00
Victor Vasiliev a5733de0a8 Also fix message name in the code 2007-12-09 13:18:10 +00:00
Victor Vasiliev ef2a6402e5 TitleBlacklist:
* Refactor code
* Filter images with incorrect titles
2007-12-08 21:06:21 +00:00