Commit graph

3387 commits

Author SHA1 Message Date
jenkins-bot 65d70aff29 Merge "Special:AbuseLog: Substitute username parameter in log message before parsing" 2016-08-15 09:13:14 +00:00
matejsuchanek f5e6c733dc Special:AbuseLog: Substitute username parameter in log message before parsing
The GENDER was not working because it was provided via Message::rawParams().

Change-Id: Ia52958b5529b0c16b6f658bb6d4afd4bb525e972
2016-08-15 08:59:47 +00:00
Translation updater bot 9ea2ad36bd Localisation updates from https://translatewiki.net.
Change-Id: Ie5d9ed3a12531120278ee485d7354289c73288e6
2016-08-14 22:24:41 +02:00
Kaldari acd28cb00f Update tests for AntiSpoof fixes
Bug: T29987
Depends-On: Iccb3e50073bbbc2b979cb62dd0e129afd1c2e55f
Change-Id: I8bef839b9b9ca5fced94ce6428e769133ede868f
2016-08-13 20:37:43 +00:00
Translation updater bot c807c696fd Localisation updates from https://translatewiki.net.
Change-Id: Ia948919a9349bd605efad330559e221f20472a03
2016-08-13 22:26:08 +02:00
Translation updater bot ccf0c73b88 Localisation updates from https://translatewiki.net.
Change-Id: Id470f69332eddaa48c194c8db8e4107fda8a0c1c
2016-08-12 23:08:21 +02:00
Amire80 4ea9026be4 Rephrase abusefilter-edit-consequences
This message said "Actions taken when matched".
This is a perfect tense, which is confusing in context,
because it is the heading of the list of actions
that _will_ be taken when matched and not _have_ been taken.
Changing this to "Actions to take when matched".

Change-Id: I2adc5a23b3e9e087dec4986747a3cd5263608f0a
2016-08-12 07:21:32 +00:00
Translation updater bot f3c3b3494b Localisation updates from https://translatewiki.net.
Change-Id: Idccc210d4c173be5234f758358c3777319d8a8db
2016-08-11 23:49:16 +02:00
jenkins-bot 6bd39475bb Merge "Only run filters once for direct uploads (without stash)" 2016-08-11 04:44:52 +00:00
jenkins-bot 67572c6071 Merge "Allow users with 'abusefilter-view-private' to view history/diff of private filters" 2016-08-11 01:43:41 +00:00
Glaisher 71b48cb28b Invalidate global abuse filter rules from cache when a previously global filter is edited
Bug: T142566
Change-Id: I3604b7eae21d5c50da4cbafe4abb15f4427eef15
2016-08-10 22:05:27 +05:00
Translation updater bot 12822f826e Localisation updates from https://translatewiki.net.
Change-Id: I77ff4c5dabf11227ef3ce7876aab461124353a56
2016-08-08 22:28:36 +02:00
Translation updater bot 4c8bff61a4 Localisation updates from https://translatewiki.net.
Change-Id: I01651c252be83ca2e522136d0f19e3ecbea31aab
2016-08-07 22:35:08 +02:00
Translation updater bot ca2c788d2c Localisation updates from https://translatewiki.net.
Change-Id: I3c55362fa1971d020e3053afcf6c4eed7421ccec
2016-08-04 23:24:31 +02:00
Kunal Mehta 722550e431 Remove 'UnitTestsList' hook
Extension unit tests are now autodiscovered.

Bug: T142120
Change-Id: I45dc300b24d27e2a36533600e1232ee56b76b2b8
2016-08-04 13:16:06 -07:00
Translation updater bot 84a0cf0ec1 Localisation updates from https://translatewiki.net.
Change-Id: I5ec88332eba9d2218314a4e7799ee13a822da620
2016-08-03 22:36:38 +02:00
Bartosz Dziewoński f2e05b105b Only run filters once for direct uploads (without stash)
Uses the new UploadStashFile hook.

Bug: T140522
Depends-On: I2f574b355cd33b2e9fa7ff8e1793503b257cce65
Change-Id: Ic7c2dbc54c6ad300d26172796ee21027a8c372ee
2016-08-03 16:30:18 +02:00
Translation updater bot 4f4d1d7079 Localisation updates from https://translatewiki.net.
Change-Id: I24ac016b84d39ae06fd626cb06942a71a20641e2
2016-08-02 22:36:37 +02:00
jenkins-bot 8ad3a44145 Merge "Remove mention of generateDiffBody()" 2016-08-02 00:19:28 +00:00
Timo Tijhof e02915161c Remove mention of generateDiffBody()
This method was removed from MediaWiki in c35d1ce2.

Change-Id: Ifefb029e22160023217aeab615ccc6542521e68e
2016-08-01 13:43:25 -07:00
Translation updater bot 3d6a8ffd79 Localisation updates from https://translatewiki.net.
Change-Id: I20d2a1927b04f7210c0d12f7763700d82677d8a1
2016-08-01 22:32:20 +02:00
Translation updater bot 8ff1f6e88e Localisation updates from https://translatewiki.net.
Change-Id: Ic53db31385b258f0cb36ded55bd8ed032566c831
2016-07-30 22:20:56 +02:00
Max Semenik 817b57a8fe Remove PHP 5.4 compatibility hacks
Change-Id: Id26a014478e5ec550bd81a8f660ddca7f6fd93f8
2016-07-28 15:35:51 -07:00
Bartosz Dziewoński a11a02d833 Make static function bufferTagsToSetByAction() really static
Follow-up to f3ac71de38.

Change-Id: Ie6865fe0c08ad0ce5e9a5a3b59c9b427228fb554
2016-07-27 22:22:39 +02:00
Translation updater bot 81e15d7273 Localisation updates from https://translatewiki.net.
Change-Id: I0428b2aa556856c42398d03b7f2c24df1147e11c
2016-07-26 22:48:24 +02:00
jenkins-bot 484bbe105d Merge "Generate user vars from User passed by hook instead of $wgUser in onArticleDelete" 2016-07-26 19:23:59 +00:00
Translation updater bot f855f3b37c Localisation updates from https://translatewiki.net.
Change-Id: I42c15f94f2883c7a1e031371cd9c8db0f96027ec
2016-07-25 22:21:57 +02:00
Glaisher d043933791 Allow users with 'abusefilter-view-private' to view history/diff of private filters
These pages are read only pages so it's better to let users with
'abusefilter-view-private' to view history and diff of private filters
as 'abusefilter-modify' is a read+write right.

Bug: T126129
Change-Id: I9e15326c8d681000ab13ef8a50fa0eed4c24dbe6
2016-07-25 10:19:06 +00:00
Translation updater bot 7dea68ce0a Localisation updates from https://translatewiki.net.
Change-Id: I0eb7295bbfb296538b47fa09efb281c55718126a
2016-07-24 22:21:21 +02:00
Glaisher 67a62093c7 Generate user vars from User passed by hook instead of $wgUser in onArticleDelete
$wgUser causes issues when it is not properly set when doing deletions in jobs and we want to
generate variables for the deletion performer anyway. WikiPage::doDeleteArticleReal already
ensures that $wgUser is only used when the performer is not set. Also updated docs.

Bug: T138571
Change-Id: If4895fe86acfd1dc2c439837df3830f9b2214336
2016-07-23 14:30:17 +05:00
jenkins-bot 9c01e7c0e4 Merge "Convert deferred update to using AutoCommitUpdate" 2016-07-22 23:39:55 +00:00
Translation updater bot b6bf0d19ba Localisation updates from https://translatewiki.net.
Change-Id: I8904f03cea8fead829145962fac790751453b7c1
2016-07-22 22:34:40 +02:00
Aaron Schulz a2baec187a Convert deferred update to using AutoCommitUpdate
Change-Id: Ife8164fc1bce00e53a89ccec6e445f721fbfa93f
2016-07-21 23:16:12 -07:00
Translation updater bot fc72b21168 Localisation updates from https://translatewiki.net.
Change-Id: I8274de00781f882b08c5abfdd47ced815f19960a
2016-07-21 22:52:11 +02:00
Translation updater bot 48740d3b2b Localisation updates from https://translatewiki.net.
Change-Id: I879c24694a6ca529b35725dddb2f073fdf697591
2016-07-20 22:33:18 +02:00
Brad Jorsch 8ee834c376 AFPUserVisibleException should log in English, not the user's language
The user's language should only be used when the exception is actually
displayed to the user.

This will also avoid "User::loadFromSession called before the end of
Setup.php" warnings when the syntax error is encountered during filter
execution for account autocreation, where we don't display it to the
user.

Bug: T124367
Change-Id: Ic17f56aecbe575ef15c6970c4298f889249e1904
2016-07-20 15:28:27 +00:00
Translation updater bot 106ce2235f Localisation updates from https://translatewiki.net.
Change-Id: I266f00c18733c563390ec0080b0ad9203ee02a89
2016-07-19 22:26:20 +02:00
Translation updater bot 0398c38962 Localisation updates from https://translatewiki.net.
Change-Id: Ifd3d42c751eff83a584f72173e68c0b66a311d33
2016-07-18 22:27:30 +02:00
jenkins-bot d56498efa1 Merge "Ignore _VIEWS in getStashKey()" 2016-07-18 19:10:24 +00:00
Translation updater bot 7191481caf Localisation updates from https://translatewiki.net.
Change-Id: Ice89546aa6ac55eb9f319c57ff40ae291569a990
2016-07-17 22:26:39 +02:00
jenkins-bot 3fe97e47bc Merge "Make getFilter() public for extension hooks" 2016-07-16 11:46:40 +00:00
Aaron Schulz d4cb5f2275 Make getFilter() public for extension hooks
Bug: T139657
Change-Id: Id1c196e8ead6cd280129e7e3aa6741edcf4fa551
2016-07-15 14:55:13 -07:00
Aaron Schulz 8da016fe26 Ignore _VIEWS in getStashKey()
Change-Id: I9830fa237073f57285435c65fe4838d23ab1d024
2016-07-15 07:03:05 -07:00
Translation updater bot d94669347f Localisation updates from https://translatewiki.net.
Change-Id: Ibe817692322b2df6001caecec7c9c0905265d60f
2016-07-14 23:24:13 +02:00
Translation updater bot 9e06345f19 Localisation updates from https://translatewiki.net.
Change-Id: I2b62873ddf5b87eb635941bdfc066244a672f60b
2016-07-13 22:33:55 +02:00
Translation updater bot 2c29152b90 Localisation updates from https://translatewiki.net.
Change-Id: Ib61121dc46d15311feafb92ddb429a29472d3079
2016-07-12 22:45:29 +02:00
Translation updater bot 2bb60ea4b5 Localisation updates from https://translatewiki.net.
Change-Id: I2b32ec9ccb2e9003542208e3113c77f96d82f83f
2016-07-11 22:54:41 +02:00
Bartosz Dziewoński 1826d39620 Use custom error code for all edit and upload API responses
The error code 'abusefilter-disallowed' or 'abusefilter-warning' is
used, depending on whether the filter only warns (and will allow the
action when retried) or prevents the user from performing the action.
The API response has been extended with some additional properties.

* For simple filters with no custom messages where the only action is
  'disallow' or 'warn', the error code is the same as before.
* For filters with different actions, different error codes would
  previously be returned; 'abusefilter-disallowed' will be returned
  for them all, with the actions taken listed in the
  .abusefilter.actions property of the API response.
* For filters with custom messages, the message key would previously
  be used as the error code; now 'abusefilter-disallowed' or
  'abusefilter-warning' is used, with the message available in the
  .message property of the API response.

Also cleaned up some dead "forwards-compatibility" code and made a
recently introduced public method private.

The new functionality depends on Ifac8995a4d16d11840cee814177fc2808bc2072c
in MediaWiki core, older MediaWiki versions behave mostly as before.

The new .message property contains both the key and the parameters
duplicated from .abusefilter, so that the client doesn't have to know
what AbuseFilter is - it'll be able to just display the given
message with the given parameters. My specific use case is the upload
dialog in core (core shouldn't have to know about any extensions).

See also TitleBlacklist change I97c1f5c6bbbdfc0b8ea9914bb075d5299c14df8f.

Bug: T137961
Change-Id: I5780eae96930211191ecd874aacf53fdacb58f89
2016-07-11 19:20:19 +00:00
jenkins-bot e49bd1bdba Merge "Provide page text and edit summary when filtering file uploads" 2016-07-11 19:12:52 +00:00
Translation updater bot 0c08ef888f Localisation updates from https://translatewiki.net.
Change-Id: I1160307d7fb61fa3f93caf12ace7fb8c2281b1dc
2016-07-10 22:17:48 +02:00