Commit graph

1966 commits

Author SHA1 Message Date
CSteipp 082ce572dc Merge "(bug 18174) Added Older and Newer change link to Abusefilter diff" 2013-01-18 18:08:33 +00:00
Marius Hoch c4e78e9713 (bug 18174) Added Older and Newer change link to Abusefilter diff
On top of that I changed /history to no longer show the
changes link if it's the first revision of the filter.

As I was on it I fixed the diff selection for diffs like
history/1/diff/2/next where change number 2 was compared
to the last change of the filter instead of the next one.
This probably went unnoticed because the /next action isn't
linked anywhere within the software itself.

Change-Id: Ic28bb696a4dbbb75e0bfcae1843ccefab1a9508a
2013-01-18 10:42:22 +01:00
Translation updater bot 83f7ed04df Localisation updates from http://translatewiki.net.
Change-Id: Id856d64a9a04ebeb736cb673f98d6e5f8942804f
2013-01-17 21:20:39 +00:00
Hoo man 24427e6d76 Merge changes I72e1a6dd,Ibb9d4c9a
* changes:
  Use Status object to report filter results.
  (bug 42064) AbuseFilter + EditFilterMergedContent
2013-01-17 17:43:32 +00:00
daniel 6522f70fb8 Use Status object to report filter results.
This changes the AbuseFilter to use Status objects for internal
error handling. This allows for more flexibility in passing error
messages back from hooks and avoids double escaping.

Change-Id: I72e1a6dd7dee19f889fc13b60456e9bfebd5e22b
2013-01-17 18:34:19 +01:00
daniel f3788c4f0c (bug 42064) AbuseFilter + EditFilterMergedContent
This makes AbuseFilter use EditFilterMergedContent if support for
the ContentHandler infrastructure is present. This means living
without some nice bits of context, because EditFilterMergedContent
doesn't provide an EditPage object.

This requires core change I99a19c93 to work correctly.

Change-Id: Ibb9d4c9a36b8a199213958b920902e8006c71fe8
2013-01-17 11:18:28 +01:00
Kunal Mehta 772a9fa619 (bug 28362) add conditional article_views variable
If $wgDisableCounters is set, using the variable will result
in a syntax error for an undefined variable.

Change-Id: I136484356506c87ac0e2ede088787e854a0a2fa9
2013-01-16 17:03:47 +01:00
Translation updater bot 2c35c8fdeb Localisation updates from http://translatewiki.net.
Change-Id: I868c87ca40be03f5fdd99df0661c6c83b7c3dc82
2013-01-15 21:29:46 +00:00
Translation updater bot 8c7e4e389e Localisation updates from http://translatewiki.net.
Change-Id: Iabea2f8950af422479c666378b2308ddad0bc936
2013-01-14 21:51:03 +00:00
Translation updater bot f0be4a8376 Localisation updates from http://translatewiki.net.
Change-Id: Ie9bc35029c2a1e82ee507ef9cbcc393aa6d220be
2013-01-13 20:34:36 +00:00
Translation updater bot bc2f8e5ff9 Localisation updates from http://translatewiki.net.
Change-Id: I1a8fce992b170eedbecfe57a36ae6e90b96efee3
2013-01-12 20:25:51 +00:00
Translation updater bot 34b6b9d1ac Localisation updates from http://translatewiki.net.
Change-Id: Ic47f7fa0ae0bf24a92f24edee61a107fb08c4a9e
2013-01-11 20:30:07 +00:00
Translation updater bot 1314f2823a Localisation updates from http://translatewiki.net.
Change-Id: I5786b16dfc035ca7ff94aeab332d9b5545b6625e
2013-01-10 21:05:16 +00:00
Translation updater bot 04e7338f7e Localisation updates from http://translatewiki.net.
Change-Id: I1170a3c20d43fd5dff17e100ad0b2c674fd20cef
2013-01-09 22:09:44 +00:00
Hoo man a885db279d Merge "Let AbuseFilter work with 1.19" 2013-01-09 01:42:29 +00:00
Translation updater bot 3116e238b8 Localisation updates from http://translatewiki.net.
Change-Id: Iae54ac9f5af38b34f5a0db1aa24677fd4478202f
2013-01-08 20:26:09 +00:00
CSteipp b8b799630b Merge "Properly integrate $wgAbuseFilterValidGroups" 2013-01-07 23:01:48 +00:00
csteipp 586598b5b2 Let AbuseFilter work with 1.19
This patch allows the current AbuseFilter to work with 1.19, by only
using MWTimestamp if MediaWiki is version 1.20 or later.

Api still needs fixing, but this will get filters running.

Change-Id: I7c9eaf777d529ce15dfd85761784f9ad1443f2bf
2013-01-07 14:53:57 -08:00
Translation updater bot f4ad75655f Localisation updates from http://translatewiki.net.
Change-Id: I99d1356b85114395edd0b720761e731dbb6b563c
2013-01-07 20:53:32 +00:00
Matthias Mullie 0c174aec42 Properly integrate $wgAbuseFilterValidGroups
The concept of different AbuseFilter groups had not properly been integrated, but should be now:
- The total number of matches is now group-specific
- .. Which will also fix the emergency shutdown calculations
- And a portion of incorrect code (involving $logged_local_filters) has been fixed (action != group)

Change-Id: I091199a9d74aee47dcb3d8942394a28e0ffd3234
2013-01-07 14:42:51 +01:00
Hoo man 25232efb24 Merge "Adding a Link back to Abuse filter management page Added the navigation bar Set page title to 'Editing Abuse filter'" 2013-01-06 20:59:59 +00:00
Adithya Parthasarathy 2128a52a9c Adding a Link back to Abuse filter management page
Added the navigation bar
Set page title to 'Editing Abuse filter'

Change-Id: Ic11846d43587c2241df0635aabf3b9b3fae4056d
2013-01-07 01:55:19 +05:30
Translation updater bot e145827473 Localisation updates from http://translatewiki.net.
Change-Id: I86d0a36d7131858c2360e0abac730b05f6ee9661
2013-01-06 20:06:24 +00:00
Translation updater bot 74540648e9 Localisation updates from http://translatewiki.net.
Change-Id: I6c2ce5e8bd7bdc78acf1d385a545a45769e28e60
2013-01-04 21:24:35 +00:00
Translation updater bot 7a0db546c7 Localisation updates from http://translatewiki.net.
Change-Id: I0db67a272283dda35f5d6f51e64fde49f2104cf9
2013-01-03 23:08:58 +00:00
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