Commit graph

688 commits

Author SHA1 Message Date
jenkins-bot e716b5c13f Merge "Remove backward usage of ApiBase::dieUsage" 2018-08-20 01:03:58 +00:00
libraryupgrader 89dda946d3 build: Updating mediawiki/phan-taint-check-plugin to 1.3.0
And updating CoC link to use Special:MyLanguage (T202047).

Change-Id: I79a19af4eff16b2283e9673fe77ca8f2c9b8ed53
2018-08-19 14:57:59 +00:00
Umherirrender da5312fb70 Remove backward usage of ApiBase::dieUsage
ApiBase::dieUsage is deprecated since 1.29, this extension required
1.29

Change-Id: Ide05c1dc6a92708deaf859e6963b607194133b5d
2018-08-18 15:53:42 +00:00
Translation updater bot 9a63080018 Localisation updates from https://translatewiki.net.
Change-Id: I0124fa5b7f5f16767973651c54166ef17d95d6c1
2018-08-06 22:22:19 +02:00
Kunal Mehta c211b57ba5 Configure phan-taint-check-plugin
The plugin checks and flags potential security issues (XSS, SQLi, etc.)
using static analysis.

See <https://www.mediawiki.org/wiki/Phan-taint-check-plugin> for more
details.

Bug: T201219
Change-Id: Ie3157955183a1810ff18c48f6a42ba3fe2ed3d1a
2018-08-03 21:22:56 -07:00
libraryupgrader cf82413701 build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
Change-Id: I278138cb74d1686a801b3a2a295ef82e0c92e862
2018-07-27 11:55:05 +00:00
Kunal Mehta 494c9b53c0 Stop setting PAGE_IMAGES_INSTALLED
Callers should check with ExtensionRegistry instead.

Bug: T200381
Depends-On: I0b9725fa4b3c4ce4fbb1004cfd3570ba39865fc1
Depends-On: Ib9a480396fc28358e681f749f80800c9bab4e0d0
Change-Id: Ibe4384238161edc8d40cff5e2a532fb36ecec64d
2018-07-25 18:20:55 -07:00
Translation updater bot c60c2bd307 Localisation updates from https://translatewiki.net.
Change-Id: Ia5049ec1348fcb685758820417ca21a77220ffa8
2018-07-05 22:43:57 +02:00
Translation updater bot ede605b746 Localisation updates from https://translatewiki.net.
Change-Id: I13f3e836003e7ecb9e62b059d565e1f054f60bf9
2018-06-27 22:19:52 +02:00
Translation updater bot 95894d76b3 Localisation updates from https://translatewiki.net.
Change-Id: I596497f1af2571414eccc0e5308074888485a4b5
2018-06-24 22:25:54 +02:00
libraryupgrader eaead3c305 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: I20229e891f2ea5985a515fb1e6176c88b2d23fa8
2018-05-26 05:23:03 +00:00
Kunal Mehta a9ad31c7f8 Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag issues
Change-Id: I3b0c14dcd5961254d49a98df4061f8ff83589f3a
2018-05-24 21:42:59 -07:00
jenkins-bot 7afb479887 Merge "Remove backward compatibility code for 1.25" 2018-04-28 20:50:57 +00:00
Translation updater bot 6888263807 Localisation updates from https://translatewiki.net.
Change-Id: Ie5729d4213b920289c904bb8426de566cc9900dc
2018-04-25 22:38:50 +02:00
Umherirrender ebbfdf7a1b Remove backward compatibility code for 1.25
Extension requires 1.29 in extension.json
ApiResult::META_CONTENT exists since 1.25

Change-Id: Ibdbabf628975b277b2d3cc01e5b8ff12116fb97d
2018-04-25 22:01:49 +02:00
Umherirrender fd0d231a3c Remove backward compatibility code for 1.25
Extension requires 1.29 in extension.json

Change-Id: Ie58a10402c207fa097eedd760b22a891d0a8cc78
2018-04-25 21:46:58 +02:00
jenkins-bot 3633c216cb Merge "Adjust InitImageDataJob" 2018-04-20 22:58:50 +00:00
Kunal Mehta 34b0dd5ff6 Unbreak test that only worked by accident, and fails on PHP 7.2
`$leadImages || $images` will return a boolean, it doesn't work like
JavaScript or Python. Use `?:` to implement what was wanted.

This only worked because `count( true ) === 1`. Using assertCount()
would have caught it also.

Change-Id: I11357b23ad1124ed96d863872014cdca7c59e284
2018-04-13 22:25:26 -07:00
libraryupgrader ded0ca4290 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I266801663a036db96a03ee026abbb78f34941c27
2018-04-13 22:20:36 -07:00
Kunal Mehta b138993e96 Properly specify method that will be mocked
Change-Id: I2bb3b586727a4a7c52f4fd8813f87d0a4e7c5952
2018-04-13 22:20:17 -07:00
Umherirrender bc4b81c7bb Adjust InitImageDataJob
$params cannot a bool here
Job::run has to return a bool

Change-Id: Ieed6675e8de0e3ed4c3376676d5b027a6ab9f4f2
2018-04-10 19:11:55 +00:00
Translation updater bot 848c07a762 Localisation updates from https://translatewiki.net.
Change-Id: I339bf731ecee6e995b504024ad6952f310c9770a
2018-04-09 23:17:05 +02:00
Umherirrender 2db7a8728e Migrate call to Http::get to use options for timeout
Since 1.25 the timeout is part of the options array.
Also added the caller for profiling

Change-Id: I111b1a0199f8a5fd0bfcfb490717861757f1d496
2018-04-05 10:14:50 +02:00
jenkins-bot 5b60adad39 Merge "Add later-than option to PageImages InitImageData maitenance script" 2018-04-03 17:44:46 +00:00
Piotr Miazga 9f605c75bc Add later-than option to PageImages InitImageData maitenance script
Bug: T152252
Change-Id: Ie4f416dce9e4703f55a0dbbcb72ae6a30554b8c1
2018-04-03 19:21:12 +02:00
Translation updater bot ca4e635b8d Localisation updates from https://translatewiki.net.
Change-Id: I9752d4037841bfdd4f96b26f451dbca26392a88f
2018-04-01 09:38:53 +02:00
libraryupgrader 534b1df71b build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

Change-Id: Ieade4ff304a47e9900e7d2a97bdd2edf534524b6
2018-03-29 04:37:56 +00:00
Umherirrender dcba9d1c87 Change DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN
As suggested in 26505b170adb24a6ae68945920db322c9382e470 for better
readability. Also the sniff now knows about the maintenance script

Change-Id: I5c6a4438fcd58b369e1f637899897d7667d56e34
2018-03-17 20:30:50 +00:00
Translation updater bot 36d5217810 Localisation updates from https://translatewiki.net.
Change-Id: I69ddfce0ddb7b02e01e4c8e36325b2538454132e
2018-03-15 22:52:09 +01:00
Translation updater bot c18cde3772 Localisation updates from https://translatewiki.net.
Change-Id: Iaa48c6e1c168d0ce5f5c0891cfdd8233cc2a3a63
2018-03-11 22:31:08 +01:00
Translation updater bot 96bec49538 Localisation updates from https://translatewiki.net.
Change-Id: I810ee35306bad302062373c03ae0173e28e1296c
2018-03-10 22:14:23 +01:00
libraryupgrader b669f559f1 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ic3b593ba0407a63217ae3d181de6bdeb4199b327
2018-03-10 00:08:09 +00:00
jenkins-bot faadfc21a4 Merge "Fix remaining php sniffs" 2018-03-05 18:07:28 +00:00
jdlrobson fcc96696d5 Fix remaining php sniffs
* Separate the ApiQueryPageImages mock into its own file

Bug: T170583
Change-Id: I3db5de11618f952eb7974c456445eaa1d5e4e6a4
2018-03-05 18:49:11 +01:00
Translation updater bot 0daaa0d308 Localisation updates from https://translatewiki.net.
Change-Id: Icca8f92910657c220dfe994189b57cf2b1cd6b0b
2018-03-03 22:25:46 +01:00
jenkins-bot d29c0d6585 Merge "Fix "Only variables should be passed by reference" test failure" 2018-02-26 17:07:09 +00:00
Kunal Mehta 3ad50a314a Fix "Only variables should be passed by reference" test failure
Bug: T188272
Change-Id: Ib8d0974b1a98fecca39abc0df2bf42ef64420965
2018-02-26 08:49:10 -08:00
libraryupgrader 5bb3c43eed build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I9ecc6d5de9b1904b6e7d214f5bd0cd6a67d4ae42
2018-02-25 10:15:23 +00:00
Translation updater bot ef52a77681 Localisation updates from https://translatewiki.net.
Change-Id: Id9c17fbd3478170b635f133a614df158d72414c4
2018-02-18 22:40:59 +01:00
libraryupgrader e6ad9aa170 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I0b5ca6d07ab39e243bb1c2e43019bf7447cf1001
2018-02-18 05:50:47 +00:00
Translation updater bot c18c097fc0 Localisation updates from https://translatewiki.net.
Change-Id: I7deae04c1c2a91e4e29de904798fed916b7bbec3
2018-02-15 22:47:17 +01:00
libraryupgrader 89089faaa9 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: Id9338a658104d1da7942c6c7bdb6e53eebf31db0
2018-02-15 13:32:16 +00:00
Translation updater bot 68bc9915ea Localisation updates from https://translatewiki.net.
Change-Id: Iafe0a29a46880dbfd41db008e009ab38c59a5c10
2018-02-11 10:42:19 +01:00
Ed Sanders 139d358299 build: Update linters
* jshint->eslint
* load message dirs from conf

Change-Id: Id644c79c96b4e7a6fe0f41223acd9193cf0c8c5e
2018-02-08 14:17:46 +00:00
Umherirrender 557b7e7128 Require MediaWiki 1.29 in extension.json for manifest_version 2
manifest_version 2 is a new feature in 1.29
(Iea5ba589c70958db7500cf3587b5ebd738532026)

Change-Id: Ic0f1104e18866e14ea8c98b5a6a98fcb0410ecae
2018-02-03 10:46:26 +01:00
Translation updater bot ad31040f83 Localisation updates from https://translatewiki.net.
Change-Id: I8471cbd32989c74db5afd61af1db7a361f03c94c
2018-02-01 22:30:20 +01:00
zoranzoki21 125ec14718 Update maintenance scripts to use $this->requireExtension
Bug: T152139
Change-Id: I1ce646506f66096387f3970dd4017b1d06841ec2
2018-01-28 14:54:33 +00:00
Translation updater bot 342c969bb4 Localisation updates from https://translatewiki.net.
Change-Id: Ieba41a58c79e26f1e91d46bd0af8c480645ec40a
2018-01-20 14:42:59 +01:00
Translation updater bot e307aef0e0 Localisation updates from https://translatewiki.net.
Change-Id: Ia98b126824bd8afc759329eaffe422067e05b68a
2018-01-18 22:49:46 +01:00
Translation updater bot 6049febcdc Localisation updates from https://translatewiki.net.
Change-Id: I86c62671c44ef372b729f70dd9176fdf391f8b62
2018-01-08 22:36:05 +01:00