Commit graph

2603 commits

Author SHA1 Message Date
jenkins-bot 963655c81e Merge "New variable: new_pst which provides a PSTed version of new_wikitext" 2013-08-08 08:01:47 +00:00
Translation updater bot d96d0d32ff Localisation updates from http://translatewiki.net.
Change-Id: I70659d0dd9309082491a58e431dd004e0b7e2fbb
2013-08-07 19:39:37 +00:00
Translation updater bot 4b48621e84 Localisation updates from http://translatewiki.net.
Change-Id: Ibabb79ec8af13cea897b10d9066a2cfee72ad8f9
2013-08-05 19:32:55 +00:00
Siebrand Mazeland a178585558 Remove duplicate case expression
Code was unreachable.

Change-Id: I83b1c2e288cb3fab50155f7baf7f608bed6274da
2013-08-05 12:46:53 +02:00
Translation updater bot 61da7fd920 Localisation updates from http://translatewiki.net.
Change-Id: Ia89d64d1ef481d09e8161ae74aefb989c8985fa2
2013-08-04 18:51:07 +00:00
Translation updater bot 857c7232a8 Localisation updates from http://translatewiki.net.
Change-Id: Ide8dd4dac50cdae741810a0360e60b4970e65703
2013-08-03 19:42:07 +00:00
Translation updater bot a308a3b4c6 Localisation updates from http://translatewiki.net.
Change-Id: I14581e7b60af910c2fd6c99d06e58bee54c33299
2013-08-02 21:33:59 +00:00
Translation updater bot 040333faf1 Localisation updates from http://translatewiki.net.
Change-Id: I928ca8e47a8f69dcd93b510083b3db01ae58ac2c
2013-08-01 20:07:44 +00:00
Translation updater bot b4373d7585 Localisation updates from http://translatewiki.net.
Change-Id: Icf1826cb68b6ed0a25f6199b3dd70d63a0ea4e18
2013-07-31 19:54:09 +00:00
Marius Hoch fb40850d9e Make sure a session has been started prior to using it
Thanks Anomie for pointing this out.

Change-Id: Ieaa9847e74c35e3080dabeaef8895209bfcc675b
2013-07-31 18:46:43 +02:00
jenkins-bot 2cdffdb070 Merge "API: Fix abuse log detail visibility for private filters" 2013-07-30 16:18:22 +00:00
Translation updater bot 1103a000ab Localisation updates from http://translatewiki.net.
Change-Id: I4a251d271f1866960fcb2fbd1fc1376d536d29c7
2013-07-29 19:31:19 +00:00
Translation updater bot e96eab7011 Localisation updates from http://translatewiki.net.
Change-Id: I378e2e09f9977a301c29ca33f3883abff0677304
2013-07-28 19:07:46 +00:00
Kunal Mehta 5596a3b572 Remove call to deprecated MWInit::methodExists with method_exists
MWInit::methodExists was deprecated in 1.22.

Change-Id: I5bbda455c64afa8ac0c9f7d1af03c4c57cff06ca
2013-07-27 21:13:17 +00:00
Translation updater bot 0052446e2b Localisation updates from http://translatewiki.net.
Change-Id: I8a1b1c70c346d1ff42f924e013d225a7f696e9d9
2013-07-26 20:33:39 +00:00
Translation updater bot 925c092030 Localisation updates from http://translatewiki.net.
Change-Id: I7b1f6daafd466380f667147c5dc68ddf35fc63de
2013-07-25 19:26:24 +00:00
Translation updater bot f16fc48b2c Localisation updates from http://translatewiki.net.
Change-Id: Ie6ce3125c9ef710b84fcd32f6eca88c01f004c27
2013-07-24 19:50:54 +00:00
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