Commit graph

498 commits

Author SHA1 Message Date
Andrew Garrett 65bc2d1dcf Fix for r46500 -- use the hook so it actually works. 2009-01-29 00:37:53 +00:00
Andrew Garrett 950fb8cf0c Register DB updates with the updater. 2009-01-29 00:26:33 +00:00
Andrew Garrett cb5eca50fd Add Special:AbuseFilter/test, which allows (trusted for now, due to DoS potential) users to enter a filter, and have it checked against the last 100 RecentChanges items while-u-wait.
Some related cleanup to change tagging in ChangesList.
2009-01-28 23:54:41 +00:00
Siebrand Mazeland 35b0c98d08 Localisation updates for extension messages from Betawiki (2009-01-28 20:32 UTC) 2009-01-28 20:53:33 +00:00
Andrew Garrett 909be785f6 Style disabled and deleted filters in light gray, for visual identification. 2009-01-28 20:09:05 +00:00
Andrew Garrett e2754e1af3 Link the filter description too, as the filter ID is often too small a target for clumsy mice 2009-01-28 19:50:38 +00:00
Andrew Garrett 8bea6e85f8 Hide action parameters if an action isn't selected. 2009-01-28 19:40:15 +00:00
Andrew Garrett f4ddeab5a4 Require 'abusefilter-revert' right to display the 'revert' button on the edit page. 2009-01-28 19:12:57 +00:00
Andrew Garrett 8a54e6ba00 Branch merge of change-tagging branch with trunk
-- Introduce tagging of individual changes (revisions, logs, and on recentchanges). The tags are customisable, and currently settable by the Abuse Filter and by the TorBlock extension. The tags can be styled on the various pages on which they appear.
-- Introduces a schema change, three new tables (valid_tag, change_tag, and tag_summary).
2009-01-28 19:08:18 +00:00
Alexandre Emsenhuber 60ccf6daa7 * svn:eol-style native
* svn:mime-type image/svg+xml
2009-01-28 11:56:01 +00:00
Siebrand Mazeland 6807219499 Message tweaks for AbuseFilter:
* 'abusefilter-log-entry' and 'abusefilter-log-detailedentry': $4 can lead to gramatically incorrect sentences. Worked around that.
* 'abusefilter-tools-text' and 'abusefilter-edit-oldwarning': added a period at the end of the message.
* some newlines added for localisation consistency
* trimmed triling whitespace
2009-01-28 10:53:03 +00:00
Siebrand Mazeland 18bb01c9cf Set wgSpecialPageGroups for the special pages of AbuseFilter 2009-01-28 10:38:58 +00:00
Andrew Garrett c472ec7ff0 Fix RECENT_CONTRIBUTORS query -- apparently options need to be uppercased. 2009-01-28 06:29:59 +00:00
Andrew Garrett c04e354053 Add some missing vars in the builder. 2009-01-28 02:56:47 +00:00
Andrew Garrett 36b78662b0 Refactor, pretty up and spread localisation of filter consequences (in logs, history, filter summary, etc) 2009-01-28 01:26:38 +00:00
Andrew Garrett 6a4457d8f5 Rename OLD_TEXT and NEW_TEXT to *_WIKITEXT, and add NEW_HTML and NEW_TEXT parameters, both of which come from the parsed new text -- NEW_TEXT being NEW_HTML stripped of <[^>]*>.
Relatedly, add scrollbars to long variables so they don't take over a bazillion screens.
2009-01-28 01:12:34 +00:00
Andrew Garrett 4640e09951 Add a missing file. 2009-01-28 00:36:49 +00:00
Andrew Garrett 4caef5c790 Clarify messages a little bit, to make sure that it's obvious that it reverts the changes made by the filter, not the changes that the filter matched. 2009-01-28 00:36:31 +00:00
Andrew Garrett 050575a5af Allow users with the appropriate permission to mass-revert all actions (like blocking, deautoconfirming and degrouping) taken by a filter, with an appropriate summary. 2009-01-28 00:10:35 +00:00
Andrew Garrett 4d4da965a8 Remove obsolete comment. 2009-01-27 21:22:58 +00:00
Andrew Garrett 9775ea2787 Soften emergency disable feature, by making it only block restricted actions, rather than disabling the whole filter. 2009-01-27 20:18:58 +00:00
Andrew Garrett ca47e8c408 Add right- message, and actually make the right do something! 2009-01-27 20:18:36 +00:00
Siebrand Mazeland 85ee0091df Localisation updates for extension messages from Betawiki (2009-01-27 19:46 UTC) 2009-01-27 19:58:18 +00:00
Andrew Garrett c83f74b448 Mark 'block' and 'degroup' as 'restricted' actions -- actions which, if added to a filter, require the 'abusefiilter-modify-restricted' right to edit. 2009-01-27 19:51:38 +00:00
Brion Vibber 309e975f13 newlines at ends of files are nice :)
also added a /*_*/ where it was missing in one of the patches
2009-01-27 19:04:17 +00:00
Rotem Liss da9b84fcd7 Localization update for he. 2009-01-27 18:43:48 +00:00
Andrew Garrett 0f1eb8db78 SCHEMA CHANGE:
For MySQL 4.0 compatibility, store a summary of actions in the abuse_filter table.
While I'm there, make the pseudo-internal names for actions localisable and therefore actually make sense to the average user.
2009-01-27 18:32:17 +00:00
Raimond Spekking 53887bb338 * Add $wgAbuseFilterStyleVersion to SpecialAbuseLog::execute
* Remove one dupe call of addExtensionStyle from SpecialAbuseFilter::execute
* Bump $wgAbuseFilterStyleVersion per CSS changes in r46325
* Add a space between drop down and submit button
2009-01-27 17:32:30 +00:00
Rotem Liss 88bb6d6626 Localization update for he. 2009-01-27 14:59:37 +00:00
Siebrand Mazeland ad78536e2b article -> page 2009-01-27 14:06:07 +00:00
Andrew Garrett a72320d1a8 Use <div>s instead of <strong>s to highlight changed columns in history. 2009-01-27 07:11:04 +00:00
Andrew Garrett 2f8fcdc86a Fix history item links. 2009-01-27 07:05:23 +00:00
Andrew Garrett fdfc68b9e9 Disable 'check syntax' button while syntax check is pending. 2009-01-27 06:19:16 +00:00
Andrew Garrett 6131d42c5d Don't try to increment the hit counters if no filters were matched, waste of a DB query. 2009-01-27 05:22:24 +00:00
Andrew Garrett 54ee8685d3 Remove stray 'return' which was breaking hit counters. 2009-01-27 05:07:11 +00:00
Andrew Garrett 48748d8fa7 Fix use of instance methods in nextToken, which is a static method. 2009-01-27 04:09:53 +00:00
Andrew Garrett e21048cae7 Remove something non-mysql compat for now. We'll re-add it properly tomorrow. 2009-01-27 02:02:12 +00:00
Andrew Garrett 412bfe0abe Respect DB table prefixes. 2009-01-27 01:37:41 +00:00
Andrew Garrett 5861a0fed1 Add OLD_TEXT and NEW_TEXT variables, refactor variable storage, and clean up the AbuseLog interface just a little. 2009-01-27 01:31:42 +00:00
Siebrand Mazeland 03ccd1e6c5 Localisation updates for extension messages from Betawiki (2009-01-26 23:29 UTC) 2009-01-26 23:37:31 +00:00
Andrew Garrett 11ab345814 Localise Abuse Filter exceptions. 2009-01-26 23:32:46 +00:00
Andrew Garrett c97a1240e8 DB patch for schema change in previous revision. 2009-01-26 22:32:11 +00:00
Andrew Garrett 83d4b5a91f Bold and apply a subtle background colour to the changed fields in Abuse Filter history -- will make things much easier to track. 2009-01-26 22:31:02 +00:00
Andrew Garrett 83cb0e5322 Don't save duplicate revisions... 2009-01-26 22:30:42 +00:00
Siebrand Mazeland 97b3f76b5b article -> page 2009-01-26 21:21:21 +00:00
Alexandre Emsenhuber ef26039406 typo in 'abusefilter-edit-builder-vars-removed-links' 2009-01-26 20:27:44 +00:00
Andrew Garrett d3e279f0e2 Fix link on main AbuseFilter changes. 2009-01-26 19:31:25 +00:00
Andrew Garrett 995c28b921 Fix up Abuse Log, by adding descriptions for variables, styling the variable table.
Also, fix up a message naming conflict introduced by r46272.
2009-01-26 19:23:27 +00:00
Andrew Garrett 4adfc225f1 If no groups are being removed, then don't add a LogPage entry for the 'degroup' action! 2009-01-26 18:52:41 +00:00
Andrew Garrett 9ee1f5e267 Add a handy 'Abuse Filter log' where you can see all recent changes to filters, and narrow it down by user if you like. 2009-01-26 18:50:20 +00:00