Commit graph

29 commits

Author SHA1 Message Date
Shinjiman 79eab4dc38 Follows up r49890, adding file location itself to obtaining the revision number shown in the Special:Version 2009-04-27 04:45:10 +00:00
Andrew Garrett eb3153baf8 Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."
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.
2008-11-30 03:15:22 +00:00
Siebrand Mazeland 2d4b05df10 Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions. 2008-11-26 23:17:15 +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
Siebrand Mazeland a71b2dd437 Use author array in credits. 2008-08-05 17:08:29 +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
Alexandre Emsenhuber 9330fc0c7f Like UsernameBlacklist, remove useless extension function 2008-06-11 21:02:36 +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
Raimond Spekking f470da2558 Add description message for [[Special:Version]] 2008-02-18 20:43:36 +00:00
Victor Vasiliev f883ab0abd Create object when necessary 2008-02-01 14:24:59 +00:00
Victor Vasiliev 2381cc0693 * Use this (see prev commit) hook in the TitleBlacklist
* Fix profiling
2008-01-14 13:52:05 +00:00
Niklas Laxström c8bc2845f3 * Delay message loading 2008-01-10 23:16:48 +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
Siebrand Mazeland cb9d0faebe * use wfLoadExtensionMessages for TitleBlacklist
* update support for TitleBlacklist in Translate
2007-12-26 16:50:58 +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 b4340da579 TitleBlacklist v1.3: add caching 2007-12-19 18:35:44 +00:00
Siebrand Mazeland 2ed55fa43f revert r28306, r28308, r28309, r28312 2007-12-16 18:45:23 +00:00
Siebrand Mazeland a341978ca9 revert 28376, 28377, 28378 2007-12-16 18:21:11 +00:00
Victor Vasiliev 281c040bd2 TitleBlacklist:
Use a better hook (getUserPermissionsErrors)
2007-12-15 06:16:19 +00:00
Siebrand Mazeland 9a723566ac * complete $wgExtensionCredits
* remove trailing whitespace
2007-12-10 23:04:24 +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
Siebrand Mazeland fa92faaf0c * complete $wgExtensionCredits 2007-12-09 13:21:34 +00:00
Victor Vasiliev dc99a5a329 TitleBlacklist:
* Allow to use different sources of blacklist: local page, URL, file
2007-12-09 12:15:13 +00:00
Victor Vasiliev ef2a6402e5 TitleBlacklist:
* Refactor code
* Filter images with incorrect titles
2007-12-08 21:06:21 +00:00
Victor Vasiliev 3299f7bc9a TitleBlacklist:
* Extend and prettify messages
* Refactor code
* Handle page moves correctly
2007-12-08 18:38:05 +00:00
Victor Vasiliev b2a4496817 * (bug 11431) API for Extension:SiteMatrix
* Initial revision for TitleBlacklist extension
2007-11-05 16:38:38 +00:00