Commit graph

3772 commits

Author SHA1 Message Date
Translation updater bot 0f47be6d93 Localisation updates from https://translatewiki.net.
Change-Id: Id15f98040eb4fee0339e2bda5106604709f1c746
2017-06-16 22:27:17 +02:00
Brad Jorsch cec8352e5b Improve tag name validation
Various pieces of the tagging system will break if the tag name contains
slashes or commas, so that should be checked for.

MediaWiki core (as of Ic5d75432) contains a method for doing just that,
so use it if possible.

Also require that tag names be either:
* Intended for reuse (canAddTagsAccompanyingChange)
* Already in use
* Creatable

This prevents the use of software-defined tags (unless whitelisted)
or tags that are blocked from creation (e.g. OAuth reserved tag
prefixes)

Add caching for tag lookup since it's used more often now.

Bug: T92956
Bug: T27151
Depends-On: Ic5d754323cbfd2c2b54c4df1245767946ebb1821
Change-Id: Ibc3095879f276a5436362f471b885e64f338522e
2017-06-15 20:15:20 -04:00
Translation updater bot 3a9b4e74f2 Localisation updates from https://translatewiki.net.
Change-Id: Ie06647404c6f3b0424f3f99a47f8045d8560a057
2017-06-15 22:36:04 +02:00
Umherirrender a063e33ee8 Use short array syntax
Done by phpcbf over composer fix

Change-Id: I53fd1fc8d056b9b60194d2d630852cfca37aadea
2017-06-15 17:02:57 +02:00
Umherirrender 24e4e85603 Use short array syntax - Views / api
Done by phpcbf over composer fix

Change-Id: I83ab556c8400354ecd09f33e1eb28caa17aa803d
2017-06-15 14:40:55 +00:00
Umherirrender 43cd56b236 Use short array syntax in alias file
Done by phpcbf over composer fix

Change-Id: I15d5484c6fc544883c706ed4ba550a0ddd91f8e1
2017-06-15 14:30:30 +00:00
Translation updater bot 284c163e78 Localisation updates from https://translatewiki.net.
Change-Id: I6d5dfa805362ae7c67480c7aa22edb99f245dd95
2017-06-13 22:19:38 +02:00
Brad Jorsch 3386cd6cd5 API: Split description messages into summary + additional text
See MediaWiki core patch I778bab2b

Change-Id: I4d4d480f22506f1b39ace486d5da7917a3f2a841
2017-06-13 13:27:46 -04:00
Umherirrender d4b50be650 Update mediawiki/codesniffer to 0.7.2
Also move --ignore to phpcs.xml for use by phpcbf
Short array syntax will be used in follow ups
to keep this patch set small

Change-Id: Ib91f3768cc7cdccdc26a4d5200178ceb8e61e098
2017-06-13 11:59:10 +02:00
Translation updater bot 17b1b15b8f Localisation updates from https://translatewiki.net.
Change-Id: I95609429c3e2c57d60b70f5935d7353001872df4
2017-06-12 22:24:41 +02:00
Translation updater bot 42f08c6772 Localisation updates from https://translatewiki.net.
Change-Id: I855657e95d79ea4669f937d0cd12934958426e7b
2017-06-11 22:12:52 +02:00
Translation updater bot ce20810fa9 Localisation updates from https://translatewiki.net.
Change-Id: I140ac8cf8aff93939c5c72775572a2585986f884
2017-06-11 00:03:34 +02:00
Translation updater bot 63296abbfb Localisation updates from https://translatewiki.net.
Change-Id: I7c5c3b88bd02edf20a8f9798a5a38a5516cdf3d2
2017-06-09 22:32:15 +02:00
Translation updater bot 7548b10ceb Localisation updates from https://translatewiki.net.
Change-Id: Ic5045dc865898018e30df60a796c21eb986754fd
2017-06-07 22:27:52 +02:00
Amir Sarabadani 2f44537c6c Add CODE_OF_CONDUCT.md
Bug: T165540
Change-Id: I87383711c472280a55b6e4dbaa898fd47d30b8e8
2017-06-07 08:28:35 +04:30
Translation updater bot c7491fc951 Localisation updates from https://translatewiki.net.
Change-Id: I6f82944702ba58bca3c05b31df3fceb514931cd6
2017-06-04 23:08:41 +02:00
Translation updater bot 98587f2cac Localisation updates from https://translatewiki.net.
Change-Id: I5721ad092860eb8d5fa03cefd2653a8cba7f0160
2017-06-03 22:22:12 +02:00
Translation updater bot 92faf08f45 Localisation updates from https://translatewiki.net.
Change-Id: Id2cb29ec5815daf8ac459f8c40252b23941c2377
2017-06-02 22:21:53 +02:00
Translation updater bot f0b04ed1d1 Localisation updates from https://translatewiki.net.
Change-Id: I8741fd41c8753c57398b6183d316d8b59dd12e3a
2017-06-01 22:46:32 +02:00
Matěj Suchánek eb8541eab5 Use mw.Api.parse() for previewing warnings
And add the filter id as the second parameter to the message.

Bug: T68351
Change-Id: Iee8ac20d3cc9c0f6340ec6f339b0e51d7c88f976
2017-05-31 09:06:31 +02:00
Translation updater bot 88b8d0b241 Localisation updates from https://translatewiki.net.
Change-Id: Idd3f9265e52a1f9534b1317f247cb346c8f546e2
2017-05-29 23:04:19 +02:00
Translation updater bot 27192dee49 Localisation updates from https://translatewiki.net.
Change-Id: I1b7fb8871994ceb4e67e20c0fcf9967b892d482f
2017-05-28 22:11:25 +02:00
Translation updater bot 48c1f93f3a Localisation updates from https://translatewiki.net.
Change-Id: I077bb805190f8e1fed0a53af54a808a9a71738a0
2017-05-24 22:35:49 +02:00
Translation updater bot 1518636dc9 Localisation updates from https://translatewiki.net.
Change-Id: I6c80070350ad2b7880c368ef5ae8c462c49c376f
2017-05-23 22:39:08 +02:00
Translation updater bot 1274cca650 Localisation updates from https://translatewiki.net.
Change-Id: I8d521fa63f723b006ec3f8b03b412f1b113050a4
2017-05-21 22:30:19 +02:00
Translation updater bot f752f167e9 Localisation updates from https://translatewiki.net.
Change-Id: I6c8e7d0084e6a0a6a7da44815358a46606a2545d
2017-05-20 22:22:21 +02:00
Translation updater bot f905174883 Localisation updates from https://translatewiki.net.
Change-Id: I13337af9e2b02e862917dd352978b96a3c1782a6
2017-05-18 22:27:10 +02:00
Translation updater bot 060ea0a059 Localisation updates from https://translatewiki.net.
Change-Id: I5384b48547415841ecfb51e123752232baaae40b
2017-05-14 22:16:08 +02:00
Translation updater bot febc8fa812 Localisation updates from https://translatewiki.net.
Change-Id: I73c229c9b823bb95fd3ddf36698f9d2fb86c7e5c
2017-05-12 22:46:42 +02:00
jenkins-bot 45952a5894 Merge "Fix usage of $db->nextSequenceValue()" 2017-05-11 21:19:13 +00:00
Translation updater bot 8fc2b273c2 Localisation updates from https://translatewiki.net.
Change-Id: Idebaba4e09caaa64b36a0965187cb90e690db767
2017-05-11 22:59:12 +02:00
Tim Starling 525b6c064c Fix usage of $db->nextSequenceValue()
The return value from the method is only suitable for passing to
$db->insert(). To get the inserted ID, you need to call $db->insertId()
even if $db->nextSequenceValue() returned non-null.

Change-Id: Id5a0df17c77445e9f29564a55fb850c3ecad2630
2017-05-11 10:03:49 +10:00
jenkins-bot 6b70225281 Merge "Only add 'sysop' group to filter user if not in it" 2017-05-09 16:46:08 +00:00
TTO bc2c6ebd81 Revert "Check tags with ChangeTags::canCreateTag"
This reverts commit 5e2e4849b3.

Change-Id: Ic581537972801b68636dffc1962848f78128701c
2017-05-09 12:09:39 +00:00
Matthew Flaschen 5e2e4849b3 Check tags with ChangeTags::canCreateTag
These are also user-provided tag names, so should be checked with
ChangeTags::canCreateTag, which is intended for that purpose.

This check also applies on edits.

Bug: T164133
Change-Id: Iaf161d538f225a86c7abf8a8a347de9169d781bf
2017-05-08 20:31:58 -04:00
L10n-bot 0aaae3eec3 Merge "Localisation updates from https://translatewiki.net." 2017-05-05 20:26:27 +00:00
Translation updater bot f519ac0881 Localisation updates from https://translatewiki.net.
Change-Id: Id89d20d3ace6159059974da10557c2d9e08fec39
2017-05-05 22:26:05 +02:00
Antoine Musso e37c969cad build: add jakub-onderka/php-console-highlighter
Highlight PHP code when parallel-lint fails

Change-Id: Ie7582baa805457a0445a119bfd5fb859f693e51f
2017-05-05 21:40:00 +02:00
Translation updater bot ab939057ee Localisation updates from https://translatewiki.net.
Change-Id: Idacbdfdd6c3f2c6f950d8a2e0888921baba1ded2
2017-05-04 22:37:44 +02:00
Translation updater bot dc2814695a Localisation updates from https://translatewiki.net.
Change-Id: If82041ad1fadbc2c2598b4814dea87fe3896de5f
2017-05-02 22:40:29 +02:00
Translation updater bot 0a6f4dcbe9 Localisation updates from https://translatewiki.net.
Change-Id: I94ec07bb3a2f48bc2df5f279ec27348766567c6d
2017-04-29 22:57:01 +02:00
jenkins-bot 7f02b8f0cc Merge "Remove usage of RequestContext::getStats()" 2017-04-26 20:51:14 +00:00
Florian Schmidt 0c663b50e9 Remove usage of RequestContext::getStats()
Bug: T156810
Change-Id: I795080cf431d396337a1ba6fa42e82ffb1b9c145
2017-04-26 20:38:21 +00:00
Translation updater bot 49e956917e Localisation updates from https://translatewiki.net.
Change-Id: I1551931e683912f563d861808b018283b753c261
2017-04-25 22:34:26 +02:00
Jcrespo 848a9ff6f5 Add FORCE INDEX to AFComputedVariable::{closure}
We add FORCE INDEX to revision because probably we have hit a MariaDB
bug that can potentially create an outage on pages with thousands of
revisions due to extreme resource usage by this query when using the
wrong index page_user_timestamp, instead of page_timestamp.

This is considered to be a hack, and once we are in the clear, I promise
to review this an try to get a saner execution path (both in MySQL and
in PHP.

Bug: T116557
Change-Id: I41853da5c0e1a15efad5594eff0cee62be1ad9a4
2017-04-24 19:34:41 +00:00
Translation updater bot 501b9f9388 Localisation updates from https://translatewiki.net.
Change-Id: Ide194ecb2fd180a78cc1b9fe50f349875e4e55ab
2017-04-22 22:37:04 +02:00
Translation updater bot 4973f21b61 Localisation updates from https://translatewiki.net.
Change-Id: Ie8756db31b240f3d110a35a2cd1849e3f92092ba
2017-04-21 22:39:52 +02:00
Translation updater bot f136b2ae1b Localisation updates from https://translatewiki.net.
Change-Id: I98fd1171d92b7c4ad1f85d8520c6d5ff1e9ff393
2017-04-19 22:47:46 +02:00
jenkins-bot 3ee05d3a6f Merge "Add stylelint for css files" 2017-04-17 21:52:51 +00:00
Translation updater bot 6dc51e1414 Localisation updates from https://translatewiki.net.
Change-Id: I15ef97df41f4daa913054c7fc1593e616b289ede
2017-04-17 22:16:53 +02:00