Commit graph

38 commits

Author SHA1 Message Date
John Du Hart 62b2bde146 Refactored SpamBlacklist to be extendable for other blacklist types
This is the groundwork for Bug 33761
2012-01-17 06:13:46 +00:00
Brion Vibber 41ba28a083 Update a butt-ton of extension about URLs to point to https://www.mediawiki.org/ 2011-12-13 23:49:33 +00:00
Alexandre Emsenhuber b16bb18e5a Dropped pre-1.12 compatibility code 2011-05-27 19:26:00 +00:00
Yaron Koren b6408039cd Added some minor backwards-compatibility, so trunk version can work with MW 1.16 and earlier 2011-02-17 00:24:24 +00:00
Daniel Friesen 3e98b04647 Followup r78590, apparently the code that puts unknown categories of extensions into 'other' was not implemented until MediaWiki 1.17... *sigh* So we need to include a version check on these extensions until they stop supporting pre-1.17 versions of MediaWiki. 2010-12-20 04:05:54 +00:00
Daniel Friesen b1bbadbab4 Change extension group 'other' for some of our antispam extensions into the new 'antispam' extension groups. Pre trunk wiki will just keep displaying them in 'other' anyways till release. 2010-12-19 01:59:11 +00:00
Philip Tzou 37db27ea98 Follow up r77321. Replace EditPage::spamPage to $editPage->spamPageWithContent in wfSpamBlacklistFilterMerged.
I did nothing to wfSpamBlacklistFilter which seems has been replaced by wfSpamBlacklistFilterMerged.
2010-11-26 07:53:30 +00:00
Sam Reed 084b83b7e2 Start removing/fixing calls to deprecated methods in WMF used extensions 2010-10-29 15:14:44 +00:00
Sam Reed bd70950a8a Minor revert of CentralNotice.db.php
Add some braces

Remove more unused variables
2010-07-26 21:55:18 +00:00
Chad Horohoe 66fb39a8f9 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 67107030b7 Large commit. Removed 800+ references to no-op wfLoadExtensionMessages() 2010-05-26 22:25:32 +00:00
Siebrand Mazeland e7afc5618a * Remove $wgExtensionCredits['description'] where $wgExtensionCredits['descriptionmsg'] present. This feature was introduced in MediaWiki 1.12, and 'description' is not used if 'descriptionmsg' is present.
* Random indentation updates and trailing whitespace removed
2010-02-22 23:41:51 +00:00
Brion Vibber fc6599f18e Cleaning up some old PHP 4 object-reference usage in some edit filtering hooks.
There was a mix of uses of the reference and non-uses of the reference. :)
Reverts r53714 and fixes it from the other end by cleaning up the uses to not expect references.
2009-08-21 21:51:29 +00:00
Shinjiman 25c0434d7d 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
Chad Horohoe 0c77258c51 Big commit. Removing svn-version and svn-date from extensions. Per the list, these versions do not give valuable information and are often wildly inaccurate. 2009-03-26 17:39:49 +00:00
Siebrand Mazeland fbbdf814d4 (bug 16120) Prevent death on Spam Blacklist trigger using API. Patch by Brad Jorsch.
An API edit attempt with Spam Blacklist firing will now output something instead of crashing:

<?xml version="1.0"?><api><edit spamblacklist="http://blacklistme.example.com"
result="Failure" /></api>
2008-11-02 22:40:02 +00:00
Aaron Schulz 51ebe6aab0 Fix mixed up params 2008-08-16 21:40:30 +00:00
Chad Horohoe 0909094e01 And now SpamBlacklist checks the edit summary field. 2008-06-19 03:14:34 +00:00
Aaron Schulz f6ecf15e42 Fix E_SCRICT errors and pass-by-ref error. Blank pages getting thrown around. 2008-05-14 12:44:34 +00:00
Tim Starling 1dc3f3e263 Don't call preg_replace ~80 times per request. Leave the heavy lifting to Special:Version, using the new svn-revision member of $wgExtensionCredits. 2008-05-06 11:59:58 +00:00
Rotem Liss 3ddce3e21f Avoid warnings about call-time pass-by-reference. 2008-03-14 18:31:28 +00:00
Siebrand Mazeland f97248426a * add svn:keywords 'LastChangedDate'
* replace text 'version' in ExtensionCredits with version based on 'LastChangedDate' for automatic version updating
2008-02-27 14:13:10 +00:00
Bertrand Grondin 36b4a729c7 fix call function error 2008-02-17 19:48:47 +00:00
Bertrand Grondin 5f45250412 Add internationalization extension description message in [[Special:Version]] 2008-02-16 20:47:29 +00:00
Siebrand Mazeland 84c26ca799 revert r28371 to r28375 2007-12-16 18:27:23 +00:00
Siebrand Mazeland 03c931aa7c * complete $wgExtensionCredits
* remove trailing whitespace
2007-12-10 21:33:25 +00:00
Tim Starling 1f195dbc54 * Optimised startup
* Use the new EditFilterMerged hook if available, for faster link finding
* Random bits of code were leaking out of the body file into the loader, poked them back in.
2007-11-12 07:44:17 +00:00
Brion Vibber cc1ddc1162 Break spam blacklist log info out to a sep file 2007-10-03 00:19:36 +00:00
Raimond Spekking 7df7acb6e0 Use $badLines instead of $badList for PLURAL: counting.
count( $badList ) is always 1 as it is a string.
2007-07-24 10:32:37 +00:00
Brion Vibber bde084c272 Some polishing and refactoring on this monstrosity, it's been allowed to grow without some good snipping in a while. :)
* Handle bad regexes more gracefully:
 - The batched regexes are tested for validity, and if one is bad, the lines from that source are broken out line-by-line. This is slower, but the other lines in that source will still be applied correctly.
 - Suppress warnings and be more verbose in the debug log.
 - Check for bad regexes when a local blacklist page is edited, and prompt the user to fix the bad lines.
* Caching issues:
 - Cache the full regexes per-DB instead of per-site; this should be friendlier to shared environments where not every wiki has the same configuration.
 - Hopefully improve the recaching of local pages, which looked like it would preemptively apply the being-edited text to the cache during the filter callback, even though something else might stop the page from being saved. Now just clearing the cache after save is complete, letting it re-load later.
* Split out some of the regex batch functions for clarity.

There are probably still issues with caching of HTTP bits, and in general the local DB loading looks verrrry fragile.
Test this a bit more before syncing. :)
2007-07-20 21:13:26 +00:00
Raimond Spekking 48689b2bca Make the long existing message 'spam-whitelist' available to [[Special:Allmessages]]. 2007-07-04 11:28:52 +00:00
Aryeh Gregor 740736ecd9 Extensions too! 2007-06-29 01:36:09 +00:00
Raimond Spekking 1676db1b55 Update/Add extension credits URLs 2007-06-26 10:38:04 +00:00
Antoine Musso 6aa7b3badc Add descriptions for some extensions used on wikipedia 2007-01-07 13:57:35 +00:00
Antoine Musso c475409997 credits + url 2006-06-23 22:22:09 +00:00
Ævar Arnfjörð Bjarmason ff1e275a8c * Support for $wgExtensionCredits 2005-08-26 14:33:40 +00:00
Tim Starling cd68beb218 More configuration settings, fixed URL 2005-07-08 16:29:22 +00:00
Tim Starling 7b9d0425d5 from phase3/extensions 2004-12-11 09:59:06 +00:00