Commit graph

142 commits

Author SHA1 Message Date
Translation updater bot 5745d8c85d Localisation updates from https://translatewiki.net.
Change-Id: I8f51f677bf8c4b9acdc5a1bd979a5dc40405ccb2
2018-08-15 22:18:50 +02:00
jenkins-bot 56de6c706c Merge "Avoid variable reuse under same name" 2018-08-12 22:21:18 +00:00
Translation updater bot f261a6b22e Localisation updates from https://translatewiki.net.
Change-Id: Ia8701d41a75b8f237e6568647560415efe5769a4
2018-08-12 22:17:59 +02:00
Translation updater bot 576f794b41 Localisation updates from https://translatewiki.net.
Change-Id: I38812ae94861c39799999efe16fd0f470a89e63a
2018-08-11 22:18:29 +02:00
Umherirrender c2083e7455 Avoid variable reuse under same name
It makes the code easier to read when using different variable names

Change-Id: Ia65e8b7ebdc0692e8dac29c605c13092cef9b0ad
2018-08-11 00:16:25 +02:00
Translation updater bot 23378fbb50 Localisation updates from https://translatewiki.net.
Change-Id: I1316d1bb67c8210f01c82cfdea131534a54a47c5
2018-08-10 22:19:04 +02:00
Translation updater bot ef8dc9b5d2 Localisation updates from https://translatewiki.net.
Change-Id: Ib452f72c4f5bc4ee1cee9976ef12cf0834d6ae02
2018-08-09 22:24:13 +02:00
Translation updater bot af18a27e2a Localisation updates from https://translatewiki.net.
Change-Id: Ib44176708cc8f516ed2bf2c3e6e0de7dc105471b
2018-08-07 22:32:10 +02:00
Translation updater bot b929604657 Localisation updates from https://translatewiki.net.
Change-Id: Icf1e102da7b46a2644b1eb4ea8f2d7b910da96a3
2018-08-02 22:19:34 +02:00
libraryupgrader 3960d9eca0 build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
Change-Id: I073424017959cc6f5e60c5d1945acb88126d3f71
2018-07-27 20:00:54 +00:00
Translation updater bot 7ea6d665d0 Localisation updates from https://translatewiki.net.
Change-Id: I6baf43c4a64b5f8e59520285207b9a28fe839f70
2018-07-24 22:10:07 +02:00
Translation updater bot 86571e95ca Localisation updates from https://translatewiki.net.
Change-Id: Ib4ba8d1148ef8c7f311e6f1b128aab4905298e0d
2018-07-21 22:12:04 +02:00
Translation updater bot df29ffa093 Localisation updates from https://translatewiki.net.
Change-Id: I7eac73a455ac7dca7fca50e076718d3c5d4b76c9
2018-07-19 22:31:06 +02:00
Brad Jorsch 435e06e2f5 Replace deprecated ContentHandler::makeParserOptions()
Having a different ParserOptions for each content model isn't feasible
in an MCR world. And the only thing using this was Wikibase, which has
been fixed to do what it needs in a different way.

Bug: T194263
Change-Id: Ia95f3e2c1ea944366ff9a478c3c86f8565023394
Depends-On: I01373b29ee25fa9346c6b0317155be4ccdc8c515
2018-07-11 12:34:25 -04:00
Translation updater bot 5c147f2709 Localisation updates from https://translatewiki.net.
Change-Id: I5fdb366fa2fcd78be57991e875317d9e32d89639
2018-07-09 22:11:21 +02:00
Translation updater bot 47af24dac1 Localisation updates from https://translatewiki.net.
Change-Id: I03307a8189bf3feb56234ea0912a1e91cdc3e8ad
2018-06-27 22:20:29 +02:00
Translation updater bot 3c7846be7a Localisation updates from https://translatewiki.net.
Change-Id: I5fafbae348a23f0110bc72b15078a44be8a1f134
2018-06-24 22:26:01 +02:00
Translation updater bot af8c08bf02 Localisation updates from https://translatewiki.net.
Change-Id: I49815364a3180f61fbb8b62dabe42570e662092f
2018-06-20 23:11:50 +02:00
Translation updater bot f4e03b5426 Localisation updates from https://translatewiki.net.
Change-Id: I36015ebfac8c190e1317d7d2fdfd8c0a8a272260
2018-06-14 22:44:45 +02:00
Translation updater bot 7d6461797f Localisation updates from https://translatewiki.net.
Change-Id: I83b398f39547418323363ab18ea7a4966f408756
2018-06-13 22:23:22 +02:00
Translation updater bot b89b93fda7 Localisation updates from https://translatewiki.net.
Change-Id: If2b5f67debba23a16e083b2bec9957385ffba6c5
2018-06-05 22:17:04 +02:00
Translation updater bot d71ad68825 Localisation updates from https://translatewiki.net.
Change-Id: I87dce0368e59d8f150b568d7b836893c9c6d6e8b
2018-06-01 22:27:47 +02:00
Translation updater bot 3600ef7d1b Localisation updates from https://translatewiki.net.
Change-Id: I7632edeb8e0009e498726062771cbbf9217efa9e
2018-05-31 22:28:46 +02:00
Translation updater bot c46f814b61 Localisation updates from https://translatewiki.net.
Change-Id: Ieee8da80d8a11fa45048b03ceefa31b83300f76f
2018-05-30 22:24:51 +02:00
Translation updater bot f4004647e3 Localisation updates from https://translatewiki.net.
Change-Id: Ic4adfa9476ae69f8db69716a67a2d2e6770c3f82
2018-05-29 22:25:15 +02:00
Brad Jorsch d1734fbeb2 Add tracking categories for errors
Two tracking categories are added:
* A category to track stylesheets with errors. While it's usually not
  possible to save a stylesheet with errors, it can happen if a
  server-side change makes formerly-valid CSS become invalid.
* A category to track pages displaying errors from incorrect use of
  the <templatestyles/> tag.

Bug: T195676
Change-Id: I123679d4bffe36cb28aca1688c052470027ea2a8
2018-05-29 14:36:03 -04:00
libraryupgrader 351e1f715f build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: Iadb3874ba4ea17ee1f6a86023a51a1cfed6397b0
2018-05-26 06:43:46 +00:00
Translation updater bot 3acc982785 Localisation updates from https://translatewiki.net.
Change-Id: Iac2cf3d77b0df844e9e7b489d5957ed0a6a149a3
2018-05-05 22:15:34 +02:00
Reedy 2f97a064b5 Update wikimedia/css-sanitizer to ~1.0.6
Depends-On: I9ed96a29d6db39206377b45e3d46cb2082587f75
Depends-On: I963a61135d66b8baa4638979fd21077d925276b9
Change-Id: I35c7aba4a8518bc0a9e70199aa7407a9786243c7
2018-04-18 14:17:01 +00:00
libraryupgrader 3e03d07154 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I06f70505d8b53b4c5abdb07ae2d3c3a3f7cfc063
2018-04-14 06:59:50 +00:00
Translation updater bot b19692b0d0 Localisation updates from https://translatewiki.net.
Change-Id: I57139ff512b8b511f5668efbb3a301baaf066784
2018-04-10 22:15:50 +02:00
libraryupgrader d50324a37d build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: Idbf1b6ac66fd580c243f0433025ee4e479a1e00e
2018-03-29 06:09:06 +00:00
libraryupgrader 8937ee2acf build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ife689d0b6688e8b7582e3b88204785fdb6c031c7
2018-03-10 06:05:48 +00:00
Kunal Mehta 37fc1df457 Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: Ic9accb2eb34bc32d455f48dfe81a91d23a2d5f5e
2018-03-03 23:27:16 +00:00
Gergő Tisza 3d6444fc77 Fix <p> wrappers in unit tests
Updates expected test results for Ide4005842c.

Bug: T186965
Change-Id: Iff92e6cd0a88d4f595148f837d892b7123b12b29
2018-03-03 23:24:21 +00:00
Translation updater bot 777bf7f55a Localisation updates from https://translatewiki.net.
Change-Id: I200d0de0696680cf9b9cd249a71959bc019baac1
2018-02-25 22:34:31 +01:00
libraryupgrader 3fe2b9011a build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I471871ef1816e623f396b86c37212e55b171d847
2018-02-25 11:32:20 +00:00
libraryupgrader 0551ea9412 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I9ee2ed98fdb484c4020b65b90c22014e2769826c
2018-02-18 09:52:36 +00:00
libraryupgrader a88b7c164f build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch

Change-Id: I4b4f7577107b869789479671e74b1fa7329979aa
2018-02-15 14:32:27 +00:00
Fomafix c1c8bed584 Add ENT_NOQUOTES to htmlspecialchars
There is no need to encode double quotes in HTML content.

Change-Id: If30adcf9196ecbfdfd1a9e21fa7b1c0bcd0e51d2
2018-02-11 17:22:27 +01:00
Reedy 203c257894 Set a requirement of MW >= 1.31
Change-Id: I4e2dc7d8d7603f89e6a9c65b5e36b7e54623ea62
2018-02-11 15:11:44 +00:00
jenkins-bot 292a347325 Merge "Swap MediaWiki\quietCall -> Wikimedia\quietCall" 2018-02-11 14:54:15 +00:00
Reedy 37c5b722d2 Swap MediaWiki\quietCall -> Wikimedia\quietCall
Bug: T182273
Change-Id: I9d5028ff04d5a8904462a8b6b0819d1974ee06a7
2018-02-11 06:03:39 +00:00
Brad Jorsch 164b8861d8 Deduplicate embedded style rules
Use the facility added in core change I055abdf4d to deduplicate the
embedded style rules.

Bug: T168333
Change-Id: I98c6d5ca4b474de8826b19355f15a5230aef5650
Depends-On: I055abdf4d73ec65771eaa4fe0999ec907c831568
2018-02-11 05:50:55 +00:00
Reedy 252fb74845 Update wikimedia/css-sanitizer
Updated
* wikimedia/css-santizer v1.0.2 -> v1.0.3

https://github.com/wikimedia/css-sanitizer/compare/v1.0.2...v1.0.3

Bug: T182273
Change-Id: Ib392edd4f7478e709f1bdf6dbc2935c1ac201bb6
Depends-On: I1966eaec7e4105f876206ab4cd606cefdaeb0add
Depends-On: Idd686bf84a44f2106ae13a31516872545946aa03
2018-02-07 11:07:44 +00:00
Brad Jorsch f99d171c80 Fix coverage
* Fix test for TemplateStylesFontFaceAtRuleSanitizer so it's actually run
* Hack up a broken Sanitizer to test a code path in
  TemplateStylesContent::sanitize() that handles such things.
* Ignore an InvalidArgumentException in TemplateStylesContent::processError()
  that's not worth checking. User input can't hit that, only logic bugs.
* Ignore TemplateStylesHooks::getConfig(), it's tested but gets called
  before PHPUnit starts counting.
* Test TemplateStylesHooksTest::onCodeEditorGetPageLanguage()
* Test $wgTemplateStylesDisable
* Test a back-compat code path in TemplateStylesHooks::handleTag().

Change-Id: I7078e5a353a624aa53fe72de7990b93a77b44cf6
2018-02-05 22:36:58 -05:00
Kunal Mehta 5ba45a396b Add @covers tags
Change-Id: Ie87849bc9dcc0b26363c9475930c967841e6a7f7
2018-02-05 18:19:30 -08:00
Kunal Mehta 9a1a06b77d Move PHP classes into includes/ directory
Change-Id: Ibc03a6c298ec3bf3bbfa435033095546db6fc5f0
2018-02-05 18:18:01 -08:00
jenkins-bot 7b025c809a Merge "Cache processed stylesheets during the parse" 2018-02-02 02:45:31 +00:00
jenkins-bot f6ad4c930a Merge "Use 'unwrap' post-cache transform instead of setWrapOutputClass( false )" 2018-02-01 22:53:14 +00:00