Commit graph

2236 commits

Author SHA1 Message Date
Translation updater bot f8aa7dc066 Localisation updates from http://translatewiki.net.
Change-Id: I863aceac1f3cdbf5f8820d10dbc4795557be6a4f
2013-07-23 18:34:47 +00:00
jenkins-bot 07dfa1c755 Merge "Load filter conditions when the user presses ENTER" 2013-07-23 17:29:11 +00:00
Helder.wiki c6a0a7daca Load filter conditions when the user presses ENTER
Cleanup:
- Trim the field value before trying to load the filter
- Add the pattern to the box using .val() instead of .text(), to
  update the content even if the user has made changes to it

Bug: 51402
Change-Id: I4ae671941571dce206448424f8e996cb99ac8d41
2013-07-23 14:01:02 -03:00
Translation updater bot 24d6166aa9 Localisation updates from http://translatewiki.net.
Change-Id: I092ad14ee5b8bc2f90f5a2a2b233ed3ea8c7204a
2013-07-22 20:10:31 +00:00
Translation updater bot 2b40b8cdca Localisation updates from http://translatewiki.net.
Change-Id: I023e555150f27d0461a939e5802051d6eb4094c8
2013-07-21 19:11:29 +00:00
Translation updater bot a5e9395666 Localisation updates from http://translatewiki.net.
Change-Id: I8cc22c9cfdc2ea8fd299a2e15e8d06e6ad62efca
2013-07-20 20:45:03 +00:00
Translation updater bot 1580dc67c9 Localisation updates from http://translatewiki.net.
Change-Id: I106e4d6c724f47cf1e693f8de69923d75bae5acd
2013-07-19 21:20:17 +00:00
Translation updater bot e727c4c05c Localisation updates from http://translatewiki.net.
Change-Id: I4ab3bf12a6bd17fe2e9d11fc414022b3f17fdc9f
2013-07-18 19:44:23 +00:00
Translation updater bot 59ddbe7671 Localisation updates from http://translatewiki.net.
Change-Id: I3101baeb21ecf7ee8931816e4f21173688bc3136
2013-07-17 19:21:24 +00:00
Marius Hoch 202d3fb7b5 API: Fix abuse log detail visibility for private filters
This seems like it never really worked, changed the API
module to match the special page now.

Change-Id: I8dc6d5f5adfb7835ed8a5084b3407505aca2a6d5
2013-07-17 17:18:13 +02:00
Marius Hoch 38bce17f2d Really parse the API warning in the APIEditBeforeSave hook
Status::getHtml doesn't actually parse messages, but
performs a dumb message transformation on them.

Bug: 51403
Change-Id: I9d82d0a74f049648735b820e731ab1883aaa3131
2013-07-16 01:01:02 +02:00
Translation updater bot 9e22da2c1e Localisation updates from http://translatewiki.net.
Change-Id: I479007ed622b5edf654a92427c8fe42f924c14fb
2013-07-15 19:26:01 +00:00
Translation updater bot 88ac112856 Localisation updates from http://translatewiki.net.
Change-Id: Ia31ea06269ac35856d360fc4c8c35348b89768d4
2013-07-14 19:13:33 +00:00
jenkins-bot a6b1dade84 Merge "Avoid wgUser in AbuseFilterHooks edit handlers" 2013-07-12 23:19:27 +00:00
Translation updater bot 9069bde9b1 Localisation updates from http://translatewiki.net.
Change-Id: I5d37327296ee0f29bede1e691c87063189bc2341
2013-07-11 19:07:47 +00:00
Translation updater bot de8261a00a Localisation updates from http://translatewiki.net.
Change-Id: I678ed341c0666a10eee811f44b1afe41492bd077
2013-07-10 21:25:55 +00:00
jenkins-bot 666db2e7ef Merge "Make global AbuseFilters searchable on Special:AbuseLog" 2013-07-10 17:17:13 +00:00
jenkins-bot 4532d1454f Merge "Make the links in Special:AbuseLog plainlinks" 2013-07-10 16:59:50 +00:00
Marius Hoch 9062371ef2 Avoid wgUser in AbuseFilterHooks edit handlers
Also a minor comment fix.
(Partly a follow up to Id998172)

Change-Id: Ie6a8f1e17afbf39a0aae7519fa7872504907223f
2013-07-10 14:55:26 +00:00
Marius Hoch 433da007e0 Make the links in Special:AbuseLog plainlinks
Those shouldn't have the external link icon set

Change-Id: I308c3b0d4ce2e19a1046bf2c16e9168bfcd5c66c
2013-07-10 14:55:00 +00:00
Marius Hoch d2a342788f Make global AbuseFilters searchable on Special:AbuseLog
Global AbuseFilters will be searchable using "global-123"
with this. Furthermore this patch fixes the visibility of
global AbuseFilter ids within the API module.

Bug: 51007
Change-Id: Ia6caba5ae3d727b778076ecdba500b4dc1d55b6f
2013-07-10 14:54:51 +00:00
Marius Hoch 150bf280cb Don't create default object from empty value in AbuseFilterHooks
We shouldn't try to set the attribute of a variable which isn't
actually an object as this will lead to the "Creating default
object from empty value" PHP error and it will trigger a further
fatal down the road. This gets triggered in Wikibase and probably
other extension unit tests.

Change-Id: I0f2e93657e5cfdb84ee351be371d421c11291b82
2013-07-10 14:54:43 +00:00
Dereckson 2fcb9e51df (bug 38371) Fixing SQL files for SQLite compatibility
Change-Id: Ie2ea51b854df6bc1c8d3219663a9e91ff8a91d2b
2013-07-10 16:50:49 +02:00
Translation updater bot 0df9424eab Localisation updates from http://translatewiki.net.
Change-Id: Ie21295a9b76095f889173bdc7849692e626df230
2013-07-09 20:35:13 +00:00
Marius Hoch 6caff9d822 Link correct Page in AbuseLog for users who can't see details
Right now the extension tries to link a local page
with the given title if the user can't see filter
details instead of linking to the correct page on
the target wiki.

Change-Id: I6bd2ecc48d1c248655ed41fc5ba9e9f286037adc
2013-07-09 18:04:53 +02:00
Marius Hoch 4cb9a96ac9 Don't trigger filter hits for nonexisting filter 0
AbuseFilter::getConsequencesForFilters uses filter ids as
array keys, that causes problems if both local and global
filters were hit, because array_merge reindexes arrays.

Example:
https://www.mediawiki.org/wiki/Special:AbuseLog/18687

Change-Id: I81cb110322461e30113199cfa313cd8e8e8b2262
2013-07-09 13:57:22 +02:00
Translation updater bot 243df103b3 Localisation updates from http://translatewiki.net.
Change-Id: I75dcdb3aa8b5d46c8c640e2999a5b4fbcc8ec12f
2013-07-08 18:58:38 +00:00
Marius Hoch 35747761fb Allow running the AbuseFilter parser tests via phpunit
I've also added myself to the credits file as I'm the only
maintainer of this extension for a while now.

Change-Id: Id998172ea2abd70b8243de9db1a96cc2cfa47a64
2013-07-08 19:22:43 +02:00
jenkins-bot 250cce6c00 Merge "Make use of the APIEditBeforeSave hook for nicer errors" 2013-07-08 17:19:29 +00:00
Marius Hoch 83357aafd0 Make use of the APIEditBeforeSave hook for nicer errors
Bug: 32216
Change-Id: I654eb21faffa1371f637d98d0fcd38c005048507
2013-07-08 19:10:25 +02:00
Translation updater bot 19f089c0d1 Localisation updates from http://translatewiki.net.
Change-Id: I30797d74afdfd9bd81260e240a28d58f3d4b8802
2013-07-07 19:39:21 +00:00
Translation updater bot 618465140d Localisation updates from http://translatewiki.net.
Change-Id: Id5189eb27b3800400d8bc8be1326019eb769f9a1
2013-07-06 18:59:53 +00:00
Translation updater bot a80521f9bf Localisation updates from http://translatewiki.net.
Change-Id: I407229fc46ede4831ae289473ace866fc6cee813
2013-07-04 20:06:31 +00:00
Translation updater bot 321b567c1a Localisation updates from http://translatewiki.net.
Change-Id: Iaa9159c4c461fb2dee6e132d47ed651ce6c9ac27
2013-07-03 19:59:47 +00:00
jenkins-bot 2e8fc6f751 Merge "Prevent custom warning messages for global rules" 2013-07-02 21:41:48 +00:00
Marius Hoch 013889c5ac Prevent custom warning messages for global rules
This prevents an abuse filter admin from setting a custom warning
message (which are references to a non-translated, local wiki page),
for global filters (which can be on any wiki in any language).

bug: 45164
Change-Id: If61716053b75f45e4b70f78d3809ddd02ac6d83e
2013-07-02 23:20:06 +02:00
Marius Hoch 9823d78e3b Make AbuseFilter work without AntiSpoof
This dependency isn't really needed in many cases
while it can cause troubles if not fulfilled.

Change-Id: I9990e99c4d3d49b5bc400bbc4a0ec02142d6f055
2013-07-02 21:50:23 +02:00
Translation updater bot cf190f71a2 Localisation updates from http://translatewiki.net.
Change-Id: Ie0260844202c2f7bbbe8939d909e471b9f4dd016
2013-07-01 19:52:44 +00:00
MatmaRex 6756f6f936 Pass context when contructing DifferenceEngines
Change-Id: I926c910bf983ae023bfc0c20a9262a1bde452a17
2013-06-29 23:52:08 +00:00
MatmaRex 3d4d705b06 AbuseFilterViewDiff: Make diffs use standard styling (and more)
They still used old 1.18-style diffs, with styles copied from core.

Also:
* Remove the distinction between "simple" and "multiline" diff chunk,
  enabling consistent styling
* Always show word-level diff, even in previously "simple" chunks
* Ensure the full context is always shown. This was clearly intended
  (showing straight side-by-side comparison if there were no changes
  and in "simple" chunks, diff otherwise; showing chunks with no
  changes), but the default context is only 2 lines.
* Remove the distinction between 'wikitext' and 'text' diffs (all are
  treated like 'text' was); it's impossible to show parsed code with
  word-level diff, and it was only enabled for "simple" chunks, all of
  which are intended to be one-line strings and are shown unparsed
  elsewhere (e.g. filter description on the list on Special:AbuseFilter)

Bug: 36478
Change-Id: Ie24ad5ac5a9a2bc9b8f0fc0c4a03d5dfe7a6a83f
2013-06-29 23:43:45 +00:00
Translation updater bot 5602cd33d2 Localisation updates from http://translatewiki.net.
Change-Id: I9c8b5c1191964f24869d8d04156afe2ae773ac78
2013-06-29 19:34:29 +00:00
Translation updater bot bc13ac9317 Localisation updates from http://translatewiki.net.
Change-Id: I1b7aedba7ea1d17a35b3e14331122f2e766407dc
2013-06-27 19:53:35 +00:00
Marius Hoch 8957c003ba Revert "Change AbuseFilter to use UserCache instead of user_text fields"
This reverts commit aaa256aa94.

Bug: 49918
Change-Id: I597cbc03e2ecc45cfcca632232d5bbb1ef7be9d8
2013-06-27 01:01:15 +02:00
Translation updater bot 1b010b58ce Localisation updates from http://translatewiki.net.
Change-Id: I56611ad574fad8db2cea4d4f222184ee9010ec84
2013-06-26 19:19:43 +00:00
Translation updater bot 022e279937 Localisation updates from http://translatewiki.net.
Change-Id: I9b85c67087503d3d5492d2cae4425db14acfe303
2013-06-25 19:53:55 +00:00
MatmaRex ddb57635be SpecialAbuseLog: use DifferenceEngine::addHeader to render diffs
Not sure why it wasn't used, maybe because it does a little more
than the bare minimum we need here.

Change-Id: I5e604474849d1389fc4cc260c76cf80e4e466bf5
2013-06-25 17:25:14 +00:00
Translation updater bot 21f188533f Localisation updates from http://translatewiki.net.
Change-Id: I8b9af2e9f8692e5d2e6f2926cf8c24e3d3669287
2013-06-24 19:53:04 +00:00
Translation updater bot 4657ef7d2f Localisation updates from http://translatewiki.net.
Change-Id: I9e76e7a32714672233d85ee491aacf3a17e8cff9
2013-06-23 20:22:47 +00:00
Translation updater bot f680a34f81 Localisation updates from http://translatewiki.net.
Change-Id: I35050aae059f10b86dcbe9dfe8eb2a4ac4342754
2013-06-22 21:26:49 +00:00
Translation updater bot 6bddc7ca46 Localisation updates from http://translatewiki.net.
Change-Id: I8f759e4171b08f206652d850c2d98d97a53fea97
2013-06-19 20:35:15 +00:00