Commit graph

1843 commits

Author SHA1 Message Date
Marius Hoch e3d15fe915 Overhaul of the AbuseFilter JS
I've changed the JS of the AbuseFilter extension to match our
coding conventions and made it use mediaWiki.Api(). Furthermore
I fixed several error handlers and made some things nicer in
general while trying to not change the user appearance.

I've tested the changes as good as I could (I'm pretty sure everything
works).

Change-Id: Iaa0f99367bd7e0bfaf7249dcc9ac9ce9881b46e1
2013-03-07 14:14:25 +01:00
Marius Hoch 1958d74854 Fix AbuseFilter JS
Temp. fix, please look at https://gerrit.wikimedia.org/r/30110

Change-Id: Ic890a6f7b39618dba9f310244777e69435940cce
2012-10-26 16:21:08 +02:00
Marius Hoch f52f940ee5 Fix the AbuseFilter JS
This is bad style, but it works... please take a look at
https://gerrit.wikimedia.org/r/30110 which is much cleaner
and doesn't have the problems as well.

Change-Id: I91684de0c8594917736812846ed3782653a46e99
2012-10-26 15:57:54 +02:00
Translation updater bot 0e9f6c0a5e Localisation updates from http://translatewiki.net.
Change-Id: Ic56ad0dedf9a34cdc5ab7f4e27f99cc28c67262c
2012-10-25 19:58:17 +00:00
Kaldari 6e3c9e4acf Merge "Bug 40672 - Abuse filter: Increase 5% limit to allow filtering for very short posts" 2012-10-25 18:22:52 +00:00
Matthias Mullie 1706ca0832 Bug 40672 - Abuse filter: Increase 5% limit to allow filtering for very short posts
This patchset will make it possible for other extensions to tap into abusefilter with a custom group, and set different tresholds per group.
See https://gerrit.wikimedia.org/r/#/c/29569/

Change-Id: I21d31bdf28e26f3c830652efc08a247db9f7a86c
2012-10-25 20:21:19 +02:00
raymond 7347c5d728 Add existing page/file restrictions
Already shown with the code but without text:
i.e. https://commons.wikimedia.org/w/index.php?title=Special:AbuseFilter/examine/82786829&testfilter=

PS2: Add message documentation

Change-Id: Ibb23bf556e8702dcd592e7a9b0ff3c851f83380c
2012-10-25 18:02:57 +02:00
Catrope 4b6c3b8a16 Merge "Nicer Special:AbuseLog URIs when using the form there" 2012-10-25 03:18:34 +00:00
Translation updater bot fd76931daa Localisation updates from http://translatewiki.net.
Change-Id: I7750e5944c149c00b878bc52e64a22f568ff3182
2012-10-24 20:00:09 +00:00
Amir E. Aharoni d146521d99 (bug 18277) Add GENDER to abusefilter-diff-version
Passed the username parameter to all uses of abusefilter-diff-version.
Added documentation and dummy GENDER to the English message.

Change-Id: Ie4df30cd6bdc8a1451fe42478bdfba5acb05c8d7
2012-10-24 15:00:48 +02:00
Translation updater bot b6493ce3d9 Localisation updates from http://translatewiki.net.
Change-Id: I62e329df4a57afa8e7e6f3556de67bafcad0197d
2012-10-23 20:03:43 +00:00
Translation updater bot e0e76d0622 Localisation updates from http://translatewiki.net.
Change-Id: Ibf86c90de5ac1d3d494e00a5e74fe4295048fc99
2012-10-22 18:31:50 +00:00
Translation updater bot e7057f865a Localisation updates from http://translatewiki.net.
Change-Id: Icdcc8dfa417d440440911a8fc2394551f7a992cd
2012-10-22 01:06:02 +00:00
Siebrand Mazeland 19217dec6e Use short form of reason.
Change-Id: I715850839ba2fe799291d09beead605d001efb6f
2012-10-20 19:50:51 +02:00
Siebrand c94c0e2687 Merge "Resolved two array_map wfMsg FIXMEs" 2012-10-17 22:37:51 +00:00
Translation updater bot 63a7843f3c Localisation updates from http://translatewiki.net.
Change-Id: I962cf3059a26e49dfe03ef60e5546e12e947cb0e
2012-10-16 19:17:17 +00:00
Siebrand 5831d7b5ea Merge "Fix some errors on the main AbuseFilter page" 2012-10-15 06:45:43 +00:00
Krenair 060a1d2cf8 Fix some errors on the main AbuseFilter page
I've been getting some errors on Special:AbuseFilter:
Warning: array_merge(): Argument #2 is not an array in /my/path/to/includes/Sanitizer.php on line 840
Warning: Invalid argument supplied for foreach() in /my/path/to/includes/Linker.php on line 366

This is the fix I came up with for them. I don't know how the previous code ever worked...

Change-Id: Ia6b159f184786d10fb696d267e65ce0530e8c64f
2012-10-14 22:46:55 +01:00
Translation updater bot e8a5bd5c79 Localisation updates from http://translatewiki.net.
Change-Id: I3f3adbc63096f42cf106f6a7824c28acbb40a566
2012-10-14 20:05:04 +00:00
Translation updater bot a33f8b830f Localisation updates from http://translatewiki.net.
Change-Id: I2fd862a986cb618e511b78fb3e7c502366275211
2012-10-13 20:52:03 +00:00
Translation updater bot 12d66e1606 Localisation updates from http://translatewiki.net.
Change-Id: I4aea30b156742cf94b59e22cad51d0c7d6e45cad
2012-10-12 21:15:25 +00:00
Translation updater bot aa99933cd3 Localisation updates from http://translatewiki.net.
Change-Id: Iacee8f196010caac7806ccf83b48af78bf876a12
2012-10-11 19:56:30 +00:00
Marius Hoch 636018137b Resolved two array_map wfMsg FIXMEs
Resolved two wfMsg related FIXMEs introduced in
I02ba4ce31b6aca5b7324114093f8ece143abc295 using
foreach loops. (UNTESTED)

Change-Id: I84e9b875b670f9eaa9c8a70e85c3b1b637113033
2012-10-10 19:59:14 +02:00
Siebrand Mazeland 8449ea4de8 Merge "Maintenance for AbuseFilter extension." 2012-10-09 21:07:00 +00:00
Siebrand Mazeland 176227e721 Maintenance for AbuseFilter extension.
* Replace deprecated methods.
* Remove no longer needed function fnmatch().
* Remove superfluous newlines.
* Remove unused and redundant local variables and globals.
* Deglobalization.
* Update documentation.
* Fix incorrect return values or add FIXMEs when in doubt.
* Escape output in a few places where needed.
* Remove unneeded MEDIAWIKI constant checks.
* Fix various JSHint/JSLint issues.

Patch Set 11: Merged https://gerrit.wikimedia.org/r/24701 into
this one per Siebrand's request

Change-Id: I02ba4ce31b6aca5b7324114093f8ece143abc295
2012-10-09 22:26:45 +02:00
Translation updater bot 12ecb71cbd Localisation updates from http://translatewiki.net.
Change-Id: Ia2ddb8a2e242e49c054a611c914fc29544f6c91c
2012-10-09 20:03:59 +00:00
Translation updater bot 33fcdcb1b3 Localisation updates from http://translatewiki.net.
Change-Id: I1e7401aec8249df9b191631dfc60e1a0f8c8f180
2012-10-08 20:16:23 +00:00
Translation updater bot 4c2fde404c Localisation updates from http://translatewiki.net.
Change-Id: I71d5d6711f28d35ff5b3859bfe782900a258eb6c
2012-10-05 21:24:46 +00:00
Translation updater bot aaae172512 Localisation updates from http://translatewiki.net.
Change-Id: I999798ece16cc653088a5ccacaf60988b0246a20
2012-10-04 20:12:24 +00:00
Translation updater bot 284290b938 Localisation updates from http://translatewiki.net.
Change-Id: I28615b308c4e42a40c3923a9b00735c5c34784a5
2012-10-02 20:34:54 +00:00
Marius Hoch ea7b8ac92c Nicer Special:AbuseLog URIs when using the form there
Make the GET URIs constructed by the form on Special:AbuseLog
nicer. Right now they're like Special:AbuseLog?title=Special%3AAbuseLog
(the title is useless as the form is already constructed with
action=/wiki/Special:AbuseLog).

Change-Id: Ibbc294431443730c5862eeadb806fbc091c5ed6d
2012-10-02 17:24:56 +02:00
Translation updater bot a35c461c8b Localisation updates from http://translatewiki.net.
Change-Id: I532d115a429d96e9b0ad60464a60ad6d73a0dc7f
2012-10-02 13:33:03 +00:00
Translation updater bot a67f8dc579 Localisation updates from http://translatewiki.net.
Change-Id: I0bf5c588f5cab72c45cb06f904ba237c527265be
2012-10-01 20:00:53 +00:00
Translation updater bot 67a2fad4a5 Localisation updates from http://translatewiki.net.
Change-Id: I5f53aca7fa6fa74104770d274163ad528636d695
2012-09-30 19:16:24 +00:00
Translation updater bot c0f1b01417 Localisation updates from http://translatewiki.net.
Change-Id: Id9c80cdc2b5ec7e2425c1793fc064f5a9f4ee7ef
2012-09-28 18:14:13 +00:00
Translation updater bot 4f45ed0b77 Localisation updates from http://translatewiki.net.
Change-Id: Ib85fd0f10bf1dafbd32688a7b7beaea6cedf778e
2012-09-27 20:58:47 +00:00
Translation updater bot 59382c120c Localisation updates from http://translatewiki.net.
Change-Id: Ic2777b0228796bc01ce255fbdf80d2b879d8e2a8
2012-09-26 19:39:58 +00:00
Translation updater bot 1ec4a40b76 Localisation updates from http://translatewiki.net.
Change-Id: I98d1f906eacfcb8f46804991f7df967fbe81b440
2012-09-25 19:40:06 +00:00
Translation updater bot c05ecbd40e Localisation updates from http://translatewiki.net.
Change-Id: I0bbe4b30e448e64904a20803e327439a174b8918
2012-09-24 19:12:29 +00:00
Translation updater bot cc47d73939 Localisation updates from http://translatewiki.net.
Change-Id: I64cb1e8aa27ab9b246e9a523f509bb15b4d87a94
2012-09-23 19:00:34 +00:00
Siebrand b7ca16003a Merge "(bug 20272) AbuseFilter does not handle autocreation of accounts." 2012-09-23 18:21:26 +00:00
Krenair 4804699e70 (bug 30324#c9) Remove 'autoblock' log params for blocks
Change-Id: I86bd5fa949a06eed95708d7f1948b684251788bd
2012-09-21 16:26:02 +01:00
Translation updater bot 2c7555f9dc Localisation updates from http://translatewiki.net.
Change-Id: Ia2a49a7a27128621b5447505c2227d69e6aa0eb3
2012-09-19 20:37:39 +00:00
Translation updater bot d59e88d18c Localisation updates from http://translatewiki.net.
Change-Id: I4da36d1c78fedbfadb036d0c1180e669304bc1ba
2012-09-18 19:12:29 +00:00
Translation updater bot 70105857e0 Localisation updates from http://translatewiki.net.
Change-Id: I94347c05cf910df74196701a38fce244279e8e0d
2012-09-17 19:36:09 +00:00
Translation updater bot 4d6cc367c3 Localisation updates from http://translatewiki.net.
Change-Id: I14bb0dbda3795bb0803e7347afbb4fa9c3d41b5e
2012-09-16 19:52:13 +00:00
Werdna d34b3659d9 Merge "(bug 30324) Don't falsely claim to angry-autoblock in log entries, don't stop talk page access." 2012-09-16 13:14:15 +00:00
Translation updater bot 72ae1fcedc Localisation updates from http://translatewiki.net.
Change-Id: Ib7b4f17cdfb6d4495e6aebd49a678cd07024dafd
2012-09-15 19:50:37 +00:00
Translation updater bot 71f86c1e74 Localisation updates from http://translatewiki.net.
Change-Id: I8142fab536bacdd1b75ff81bc12b49934d8f4001
2012-09-14 21:07:16 +00:00
Translation updater bot b3b4b672be Localisation updates from http://translatewiki.net.
Change-Id: I977762de5ee57ed8a7d82d7d727a03aa7882fd2f
2012-09-13 20:39:43 +00:00