Commit graph

4342 commits

Author SHA1 Message Date
CSteipp 452b918203 Merge "Add hooks to AF that allow altering User and Title specific vars" 2013-01-03 20:38:59 +00:00
Translation updater bot fc667ee042 Localisation updates from http://translatewiki.net.
Change-Id: If67f54ec0ed6c00c1bdb32d99cbbf1d4858d667e
2013-01-02 20:49:33 +00:00
Translation updater bot a80fab5351 Localisation updates from http://translatewiki.net.
Change-Id: I23c8afec7867d299702d654c967dcc37d857efb4
2013-01-01 20:18:38 +00:00
Translation updater bot 681b450db1 Localisation updates from http://translatewiki.net.
Change-Id: I9e024497c12da86b793e4bb4f714c40732fe8924
2012-12-31 20:28:04 +00:00
techman224 192f2e250e Hidden the test subpage in the navlinks for those without modify rights
The link should not be shown to users that don't have the right to use it,
like with the tools and import pages

Change-Id: Ie48e61a7de61ab095d621845466aea56b7445f5a
2012-12-30 15:23:36 -06:00
Translation updater bot e4c0f6aec5 Localisation updates from http://translatewiki.net.
Change-Id: I94cc37028e7b5837d4b1cf6cca892118b9c3d6cb
2012-12-30 19:25:55 +00:00
mf 867ff128b4 Follow-up to https://gerrit.wikimedia.org/r/#/c/41055/ in order not to talk of edits when actually no edits are being attempted
Change-Id: I6f5e3105131304e0662153877518fc2004b8cda1
2012-12-30 18:54:11 +01:00
Marius Hoch d307970e1e Fixed a PHP notice in Views/AbuseFilterViewEdit.php
Change-Id: I39a6a4b3063dd4c5b07b014940170442c2bbdbe7
2012-12-30 05:02:04 +01:00
Translation updater bot 5163283cd6 Localisation updates from http://translatewiki.net.
Change-Id: I29e4238cce21bd17c0712cfee79db0ea5488af0c
2012-12-29 19:33:49 +00:00
Siebrand Mazeland 46c14922ef Tweak 'abusefilter-warning' to not refer to button directly
This message is used in different contexts and the "save" button is not
known. Now referring to simply submitting the previous action again.

Spotted by MF_Warburg:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Abusefilter-warning/en

Change-Id: Id3f158e108ac24a0386c297112ff8c905b28d645
2012-12-28 21:44:33 +01:00
Hoo man f10b8eaab5 Merge "Add Permission for Global-Rule Editing" 2012-12-28 01:29:39 +00:00
csteipp cc000576d7 Add Permission for Global-Rule Editing
Add a permission 'abusefilter-modify-global' which an administrator must
have to set global rules in the central database.

By default, this right is not associated with any group.

Change-Id: Ied92f7ffd90cb2d8eeb8f3f26b941edbb22b10d6
2012-12-28 02:27:08 +01:00
Marius Hoch 9fa6ef5a95 Add hooks to AF that allow altering User and Title specific vars
Added two hooks to the AbuseFilter, one that allows altering of the
variables created for a specific user and one for title specific
variables. This a much cleaner way to add title or user specific
variables than using the current general-purpose hooks.

Change-Id: I7374846346dd220b5d0633c11c134030f98bcf00
2012-12-28 00:40:48 +01:00
Translation updater bot 892ad05c79 Localisation updates from http://translatewiki.net.
Change-Id: If1d6ec23e837ae247e9c3806d6c6098715b03e66
2012-12-27 21:14:43 +00:00
MaxSem e788899514 Merge "Minor removal of duplicate code within the AF parser" 2012-12-27 18:24:38 +00:00
Translation updater bot afc1a2eb7a Localisation updates from http://translatewiki.net.
Change-Id: I761975cc2b88de7be6a91abfea062383351b6f55
2012-12-26 20:56:04 +00:00
Translation updater bot 76f2f66b5f Localisation updates from http://translatewiki.net.
Change-Id: Ia3c02049bd0f8b7901ce18f717c1b8b8b8589fae
2012-12-25 19:56:39 +00:00
Hoo man 17d7d78c95 Merge "(bug 43105) Don't send HTML to the IRC feeds" 2012-12-23 23:30:23 +00:00
Translation updater bot 85455d6269 Localisation updates from http://translatewiki.net.
Change-Id: Ib9487970444da895fea2b26e7c024abd142b948f
2012-12-23 21:42:57 +00:00
Translation updater bot a42d907c65 Localisation updates from http://translatewiki.net.
Change-Id: I379301c23d7f95b86139432e918905d064a357d2
2012-12-22 22:03:00 +00:00
Krenair c7a617f24d (bug 43105) Don't send HTML to the IRC feeds
Change-Id: Idcbcf1f194f2fc1bdd10fefab570849a72ed30e7
2012-12-22 19:05:51 +00:00
Translation updater bot 028300474e Localisation updates from http://translatewiki.net.
Change-Id: Iadf4dc055623b3ca2d4399483459b27ecaeac528
2012-12-21 20:14:12 +00:00
Translation updater bot 09dd46ed4b Localisation updates from http://translatewiki.net.
Change-Id: I2936ab3d5de8f04d1897ac6e9f3132f03e595ebd
2012-12-20 20:40:02 +00:00
Marius Hoch fc5ef1666b Minor removal of duplicate code within the AF parser
Change-Id: I4e318028c2c623f77f1615971090eb06fc21f2d3
2012-12-20 17:09:10 +01:00
Marius Hoch 5a2d539403 Add a hooks.txt to AbuseFilter
Change-Id: Id0b03816ab247bf8255687338ac2652a598ba2ab
2012-12-20 03:45:14 +01:00
Marius Hoch 03da29b9da Fix the abusefilter array parser test
The abusefilter array test failed because length( ['a', 'b', 'c'] )
returned 12 instead of 6. That was du to it converted the array
to a string with new line seperated values first before measuring
the string length. Changed that behaviour to act like the php count()
function or the python len() function which seems far more useful to me.
The old behaviour can be established using length( string( array ) ).

Change-Id: I16646891837c9743ca5af2dd328077a7225bb5f1
2012-12-20 02:19:55 +01:00
CSteipp 37d05a77d3 Merge "(bug 42802) Let the client specify multiple filters for list=abuselog" 2012-12-19 20:23:20 +00:00
Translation updater bot 254d56c053 Localisation updates from http://translatewiki.net.
Change-Id: Id2ae02c41842fd1aeb7a405cb6ec7e995144c4e7
2012-12-19 19:55:53 +00:00
jeblad 68ecb6f985 (Bug 42064) Add a hook to AbuseFilter
The hook 'AbuseFilter-interceptVariable' can be used
for intercepting any request to recalculate a variable,
and if a handler is returning false the later code
will be skipped. That makes it possible to avoid using
content if the content model is wrong, as it could be
for a Wikibase entity.

The hook uses the same arguments as the hook
'AbuseFilter-computeVariable', thereby making it simple
to move handlers around.

The arguments to the hook are
@param string $method
@param AbuseFilterVariableHolder $vars
@param array $parameters
@param AFPData|array|int|mixed|null|string &$result

Patchset 2: Fix for arg 1 to the hook, it got $this
	instead of $this->mMethod

Change-Id: I4944ea612369d6f96319e24c96d97cf9739358c7
2012-12-19 10:13:31 +01:00
CSteipp 99f89ec50c Merge "(bug 42814) Fix the visibility of action=query&list=abuselog" 2012-12-19 01:20:04 +00:00
Krenair a0bf987aff (bug 42802) Let the client specify multiple filters for list=abuselog
Change-Id: I9d06186aea207896bdb354d0e86ee35632fc2090
2012-12-19 01:27:02 +01:00
Kunal Mehta a5658f6004 (bug 42819) AbuseFilter API does not give diff information
Change-Id: Ia5075c241b95e28ad6371df9e82fc42cd51136b4
2012-12-19 01:14:23 +01:00
Marius Hoch ad9f60a9d3 (bug 42814) Fix the visibility of action=query&list=abuselog
Made prop=details invisible for hidden filters if the current
user isn't allowed to see that. Visibility should match the web
interface now.

Change-Id: I2cd682a2ec298473e5398fbf20d850b710f4e93a
2012-12-18 23:02:16 +01:00
csteipp 7a21a8f76a (bug 42814) Fix AbuseLog API permissions
Match the API to how Special:AbuseLog prevents unprivileged users from
seeing the filter number that triggered an action, when the filter is
private.

Change-Id: Iff352a0a6dbfeaa05f9272af927119ba1bb2194d
2012-12-18 22:48:28 +01:00
Translation updater bot a4a3f4aa05 Localisation updates from http://translatewiki.net.
Change-Id: Id43564fd28bb75ee678cc0d9545b11c0b87aafe0
2012-12-18 20:33:33 +00:00
Hoo man fb7a3ee583 Merge "(bug 42816) Run the same permissions checks for list=abuselog as Special:AbuseLog" 2012-12-18 19:43:32 +00:00
Hoo man 7a3d7a9c69 Merge "(bug 34946) Make afl_user_text availible as $9 for log entries" 2012-12-18 19:24:08 +00:00
Hoo man 253812a2f4 Merge "(bug 22548) add boolean user_blocked variable" 2012-12-18 19:09:32 +00:00
Translation updater bot 31e7ac7205 Localisation updates from http://translatewiki.net.
Change-Id: I0a092e920bd8c1bd2ba07875d1bcefbd3a4caff9
2012-12-17 21:23:35 +00:00
Translation updater bot 66db1b8794 Localisation updates from http://translatewiki.net.
Change-Id: I7ae4f548581bb2ffa5fbf28b2305c392bcc8f9b8
2012-12-16 20:46:21 +00:00
Hoo man c99f99a755 Merge "Add option to have private filters notify UDP/RC (default: disabled)" 2012-12-16 16:10:52 +00:00
Kunal Mehta f97df950d7 Add option to have private filters notify UDP/RC (default: disabled)
Change-Id: I7e54f1da9f01634791316e613e79b2b7740f9760
2012-12-16 17:09:30 +01:00
Kunal Mehta d87d77db3f (bug 34946) Make afl_user_text availible as $9 for log entries
This would allow for external lookup tools to be linked in the log entry itself

Change-Id: Ia484ad2aedf22a6a22172e6f752165cc0cab4009
2012-12-16 04:21:13 -06:00
Translation updater bot 608bbc9fba Localisation updates from http://translatewiki.net.
Change-Id: Ieee82565e924391711d1305cbf8ce8fb4ec16f94
2012-12-15 23:52:30 +00:00
Translation updater bot 5652ce78e4 Localisation updates from http://translatewiki.net.
Change-Id: I4fa6ef35f7c81428cc12b5aa05c5952b534a8094
2012-12-14 20:34:16 +00:00
Kunal Mehta 71a3679553 (bug 42820) Abusefilter log makes "contribs" link blue even if user has 0 edits
Change-Id: I9f3c35f35a8923e6713caee5b60773ff2de73560
2012-12-14 08:21:14 -06:00
Kunal Mehta 2b01494cfc (bug 22548) add boolean user_blocked variable
Change-Id: I8b61ce42338596a38e411d6023c8f7ff963641a1
2012-12-14 04:32:37 -06:00
Ori Livneh 90791cb24e Fix class name
Change-Id: If300aad2c3acf4d007e80a11158419c315c800e4
2012-12-13 15:59:54 -08:00
Translation updater bot 03e62952bc Localisation updates from http://translatewiki.net.
Change-Id: I98fb55f8b494843d0023c3ebdf2c41b840336e44
2012-12-13 20:26:07 +00:00
Kunal Mehta 578bc116e0 Don't send private filter hits to IRC/UDP
Change-Id: I433aa0d92f7bf805ea27eaf235909065e4d478a7
2012-12-13 04:29:16 -06:00