Commit graph

2389 commits

Author SHA1 Message Date
Translation updater bot 7e28e32ee0 Localisation updates from https://translatewiki.net.
Change-Id: I8d40f00d7d5b998c234e2fd3d419f3f05c1965e9
2020-03-24 08:49:44 +01:00
Thiemo Kreuz a429c8cc35 Fix escaping issues and a series of unrelated code cleanups
Actual changes:
* Let the special page accept the subpage parameter, e.g.
  [[Special:MathWikibase/Q6203]].
* Fix some of the message escaping issues in SpecialMathWikibase.
  Messages that are just plain text and not supposed to contain any
  parameters, wikitext, HTML, or something like this should be
  properly escaped, either via Html::rawElement( $msg->escaped() ) or
  better Html::element( $msg->plain ). The later approach is cheaper.

Other code cleanups that don't affect production:
* Reduce the amount of duplicate code in SpecialMathWikibase.
* Make use of the preg_match() return value.
* Remove default parameters from parent::__construct() call.
* Remove some auto-generated comments.
* Remove some comments that don't add new information, but just repeat
  what the code already says.
* Make use of PHPUnit's assertCount().

We can split this patch into smaller patches, if you prefer. This
should especially be done if one of the changes is controversial, to
not block the other changes. Please tell me.

Change-Id: I8c20014435af3d2ac9c7381fe5fd00b9fe49b2c2
2020-03-21 14:53:15 +00:00
DannyS712 08291a2adc extension.json - don't use array syntax when hooks only have 1 handler
Change-Id: Icedb34ae5183240458d2da39a031df60093c8d6d
2020-03-21 10:20:39 +00:00
libraryupgrader 88d85a94d8 build: Updating npm dependencies
* mkdirp: 0.5.1 → 0.5.3
  * https://npmjs.com/advisories/1179
* eslint: 6.4.0 → 6.8.0
  * https://npmjs.com/advisories/1179
* acorn: 7.1.1 → 7.1.1
  * https://npmjs.com/advisories/1488

Change-Id: Ia0b3506afd49153d5f4a5c815ef59764698b0aea
2020-03-21 03:33:04 +00:00
DannyS712 f5d0db1707 Use lowercase for primitive type 'string'
Change-Id: I17b5256ee73d68f3b57801512abac05a5c0d0c03
2020-03-20 15:34:55 +00:00
libraryupgrader bcf50cb38a build: Updating npm dependencies
* minimist: 0.0.8 → 1.2.5
  * https://npmjs.com/advisories/1179
* acorn: 7.1.1 → 7.1.1
  * https://npmjs.com/advisories/1488

Change-Id: Ieb016bc74a9206a4fdac4507a4a47957ccfca2c5
2020-03-19 00:07:01 +00:00
Translation updater bot b98029d180 Localisation updates from https://translatewiki.net.
Change-Id: I9dcca7ae534166446f4d9d0756e4ae8fc4b2d36c
2020-03-18 08:58:11 +01:00
Translation updater bot 4578c4e0f5 Localisation updates from https://translatewiki.net.
Change-Id: Ic1848c9d6167bde703792d86d5856e427506fbb8
2020-03-16 16:01:39 +01:00
Timo Tijhof f59757a338 Replace $wgContLanguageCode with $wgLanguageCode
$wgContLanguageCode has been an unconfigurable copy of $wgLanguageCode
since 2006 (MW 1.8).

Bug: T247674
Change-Id: I1d2ec1e63320086fdf9ab7c6321f949c99c1ab2a
2020-03-14 19:31:26 +00:00
Translation updater bot 28ee42c34a Localisation updates from https://translatewiki.net.
Change-Id: I14246071fd2d365c2d63d7cd0c1727b53f541230
2020-03-13 08:54:37 +01:00
jenkins-bot f46d2e6eec Merge "Avoid using Title::__construct" 2020-03-08 19:53:20 +00:00
Daimona Eaytoy 10aee4e9a5 Avoid using Title::__construct
Change-Id: I4241487d77a9528ca06251ab25e2d2b08401d893
2020-03-08 10:33:17 +00:00
libraryupgrader 7b99fd1c85 build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I9f19211b735a4a83353b86194488a6ee72a7c9ae
2020-03-08 08:48:09 +00:00
DannyS712 7d38b11af5 Use ParserOptions::newFromAnon() instead of relying on global $wgUser
Bug: T246861
Change-Id: I42c813a72a2ecacbdc96777d1a94485ac890fba0
2020-03-07 02:19:08 +00:00
Translation updater bot 88d3b286b5 Localisation updates from https://translatewiki.net.
Change-Id: I15e6b198505b7368ede100f6512bfde4c37bb85d
2020-03-05 08:39:06 +01:00
Translation updater bot b559e701bf Localisation updates from https://translatewiki.net.
Change-Id: Ic5f646fd2ba76c8439cd846eb25decf3022da969
2020-03-02 09:10:42 +01:00
Translation updater bot a146225121 Localisation updates from https://translatewiki.net.
Change-Id: Ife563340385b01718e338e52946a468d1805cee1
2020-02-28 08:22:39 +01:00
Translation updater bot fed4208693 Localisation updates from https://translatewiki.net.
Change-Id: I85a1b8ec37dfc8a99a59af901f293f6f8bebda48
2020-02-25 09:36:56 +01:00
Translation updater bot 86a21d7e7d Localisation updates from https://translatewiki.net.
Change-Id: If01ddaa726638c87cb6ab9151c109acab46e89c6
2020-02-24 09:03:05 +01:00
libraryupgrader cb562ba649 build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: I1d0d8d387e5983fadaa915319b7cace5626ee91d
2020-02-20 23:06:21 +00:00
Translation updater bot a89c8ea2b8 Localisation updates from https://translatewiki.net.
Change-Id: Ic03113363508813d932c2b2012f481980b6b5af9
2020-02-20 09:27:15 +01:00
Translation updater bot 1348a8a64e Localisation updates from https://translatewiki.net.
Change-Id: If45d75d947c9760912393aac24a7de50c716e12f
2020-02-19 08:25:11 +01:00
peter-ovchyn 90b26c0878 parser: Replace 'new Parser' in favour of using ParserFactory/MediaWikiServices
Bug: T244055
Change-Id: I4049f155d066b165f0d5ec634da54b0bfed89188
2020-02-18 12:55:14 +02:00
Reedy 7345e85b26 Remove trailing : from log error messages
Change-Id: Ie11662d0e55f553917df7a869de4b8019a827ae8
2020-02-14 21:13:07 +00:00
Reedy 819881ad9c Stop using 'url' param when logging
Bug: T245306
Change-Id: I3ba196e01afe172a99d15abf654a630a3f3d219f
2020-02-14 21:13:00 +00:00
Reedy c3a2b12077 Fix some excessive indenting
Change-Id: Icbd2f1461cbff96ad984b23738fb056a6c25af23
2020-02-14 20:57:23 +00:00
Translation updater bot aee0431b1b Localisation updates from https://translatewiki.net.
Change-Id: I01b44993a19bd370d8d75f0fbe9f186c3ce5d1f9
2020-02-11 08:19:29 +01:00
Translation updater bot d11009d16a Localisation updates from https://translatewiki.net.
Change-Id: I21e12ffa694e7c4e0de76eaad60a9dd1368bc6c9
2020-02-10 08:34:34 +01:00
Translation updater bot 47679cd239 Localisation updates from https://translatewiki.net.
Change-Id: I62a7e253e3d17b9f5fb9cd78b2432c6c1e8bcdc0
2020-02-05 08:19:15 +01:00
libraryupgrader 9a33254fb6 build: Updating composer dependencies
* jakub-onderka/php-console-highlighter: 0.3.2 → 0.4.0
* mediawiki/minus-x: 0.3.2 → 1.0.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1

Change-Id: I23b372f28baa84360eea9266ab2b63cce69616a9
2020-01-29 17:46:54 +00:00
Umherirrender e4b8834d39 Fix case of MathDatabaseTest::setUp
Change-Id: Iabb83ef681bb824df3d47c6bd60f769a50f4da45
2020-01-28 21:18:17 +01:00
Translation updater bot c1e379ce37 Localisation updates from https://translatewiki.net.
Change-Id: I357d2d7c840fa6ca94692d5e9f8fd691ecae58a8
2020-01-28 08:25:49 +01:00
jenkins-bot 3f0b69601b Merge "Stop using deprecated assertType" 2020-01-20 11:06:33 +00:00
jenkins-bot 095e0fdad3 Merge "Localisation updates from https://translatewiki.net." 2020-01-20 09:09:18 +00:00
Translation updater bot 0c74ec922b Localisation updates from https://translatewiki.net.
Change-Id: I389ac3d557f6507a69143a2accbeaac6b34a2eb0
2020-01-20 08:49:50 +01:00
Reedy d819311602 Add $snakNamespace parameter to ValueSnakRdfBuilder implementer
Bug: T243122
Change-Id: I9b7c3b9daa81069a5b5eb66271f2c732cefe313f
2020-01-18 14:06:43 +00:00
Daimona Eaytoy 9d6c43c728 Stop using deprecated assertType
Change-Id: I675132ced8187c3c5d06e0c94447e5e235aa231c
2020-01-17 16:15:37 +00:00
jenkins-bot 0e7bc76802 Merge "build: Updating mediawiki/mediawiki-codesniffer to 29.0.0" 2020-01-15 07:42:25 +00:00
libraryupgrader 5018e51b29 build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate

Change-Id: I57bb0f5bc4167ea4b4a50d666ad95c02fcc7d8c9
2020-01-14 22:01:54 +00:00
Translation updater bot 49f1e0322c Localisation updates from https://translatewiki.net.
Change-Id: I19a6b490d3550ce0655e3be90dc1bd4f70237716
2020-01-14 10:59:17 +01:00
Translation updater bot 117626880c Localisation updates from https://translatewiki.net.
Change-Id: I3264643dac13cc2f80c741689ed974069234261d
2020-01-13 09:11:02 +01:00
libraryupgrader 6aeffb314b build: Updating npm dependencies
* grunt-stylelint: 0.12.0 → 0.13.0
* stylelint-config-wikimedia: 0.7.0 → 0.8.0

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: I1eb32aab9914081e5b637b068f723ca59a60b3a7
2020-01-13 04:06:58 +00:00
jenkins-bot 6f347e7b34 Merge "build: Updating mediawiki/mediawiki-phan-config to 0.9.0" 2020-01-11 00:39:01 +00:00
Translation updater bot e9123327f1 Localisation updates from https://translatewiki.net.
Change-Id: I00c490f5a08df3d5d07588be8fc2cf93e54333de
2020-01-08 08:42:30 +01:00
Translation updater bot e0a58f845b Localisation updates from https://translatewiki.net.
Change-Id: Ia0e43cac84a3b0a446c156d3664f47b526096011
2020-01-07 08:48:45 +01:00
Translation updater bot 4c428e578f Localisation updates from https://translatewiki.net.
Change-Id: I53f859e711cb6243cf89d672afdaa27fed69232e
2020-01-06 08:49:37 +01:00
Umherirrender 50b030a6ac Move test-only classes to new TestAutoloadClasses declaration
Bug: T196090
Change-Id: I1a5bc889f011cc2f9c5b08b0f3f94005357ac2a1
2019-12-31 00:44:53 +01:00
jenkins-bot 45e6751a3c Merge "Don't list Special:MathWikibase if the wikibase client isn't loaded" 2019-12-30 09:05:52 +00:00
Translation updater bot e4faabeea7 Localisation updates from https://translatewiki.net.
Change-Id: I231395dd441043b7c7580e5adb8df16773a9eec9
2019-12-29 20:41:16 +01:00
libraryupgrader 863794c1dd build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Change-Id: Id4f976b7ec94e1d2be0421725733804f24dec2c5
2019-12-29 17:56:56 +00:00