Commit graph

2130 commits

Author SHA1 Message Date
libraryupgrader 1e47916311 build: Updating mediawiki/mediawiki-codesniffer to 31.0.0
Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".

Change-Id: I4f0e77e3ee1e8d8ade1bacdba6cf74cedc34da31
2020-05-30 02:18:14 +00:00
jenkins-bot b07aefbd36 Merge "Parse messages in string context" 2020-05-28 16:52:16 +00:00
Translation updater bot c2713cf061 Localisation updates from https://translatewiki.net.
Change-Id: Ieacc5a7e21d659f9067d4253980ff69205daa733
2020-05-28 08:40:20 +02:00
jenkins-bot 13453d7831 Merge "Add MathCheckerFactory Service" 2020-05-27 18:44:03 +00:00
Moritz Schubotz (physikerwelt) 707ad58598 Add MathCheckerFactory Service
Use WANObjectCache rather than genuine DB tables for greater
flexibility.

Note, this commit is the second step of Ifd89e2d9cb30fa15cc318f077b434207ed6b7214

Bug: T252390
Change-Id: Ifa7d943875f05088ef697a5a18ad292342a9b4ad
2020-05-27 07:29:49 +02:00
Umherirrender b0f6c21b8e Parse messages in string context
The current default for Message::__toString() is to parse, so this
keeps that behaviour unchanged.

Change-Id: Icf83608b031390126b5e8d29a5600d37589cf411
2020-05-24 17:11:57 +02:00
Tim Starling 7dff64f214 Use HttpRequestFactory::createMultiClient()
This allows it to respect the proposed limit on HTTP request timeout.

Bug: T245170
Depends-On: I8252f6c854b98059f4916d5460ea71cf4b580149
Change-Id: I1c3d96720709253ad15bb8528cdd132571de2e4e
2020-05-21 14:38:48 +10:00
Translation updater bot 315a6e8bf2 Localisation updates from https://translatewiki.net.
Change-Id: Ibfd5fa3c3793b34d96edfb07298df940c186a6bf
2020-05-18 08:30:37 +02:00
Moritz Schubotz (physikerwelt) fc0faf18c3 Move checking code to a new namespace
Introduce new namespace \MediaWiki\Extension\Math\ and move checking
code to this new namespace.

Note, this commit is the first step of Ifd89e2d9cb30fa15cc318f077b434207ed6b7214

Bug: T252390, T187154
Change-Id: I8c93f4b21d4a72ef2d52d4774d69e4ef55d037ec
2020-05-12 21:26:45 +02:00
Reedy 4c8b4deb2f Convert to manifest_version 2
Bug: T252470
Change-Id: I49e84a81a8d3d77883d925991a83c5cb29c34826
2020-05-12 01:46:30 +00:00
jenkins-bot 8e07daafea Merge "Properly restrict SpecialMathStatus to those with purge rights" 2020-05-11 16:02:16 +00:00
Translation updater bot f177ea4800 Localisation updates from https://translatewiki.net.
Change-Id: I2a655a9cea105cb0af0463369441a1aaa110e4f8
2020-05-11 08:38:14 +02:00
DannyS712 17b2ce0d2d Properly restrict SpecialMathStatus to those with purge rights
Bug: T252362
Change-Id: I98eabfbeda2fbef3c317c7bb6aaddf5595788f5c
2020-05-11 05:17:11 +00:00
Translation updater bot 72bf6644eb Localisation updates from https://translatewiki.net.
Change-Id: I820225d783aca61e3afa1f701aaa6bde086337ce
2020-05-08 09:28:33 +02:00
Translation updater bot f00a9e95e5 Localisation updates from https://translatewiki.net.
Change-Id: Idba0ec06246b4a196c190a41b862a471937ec677
2020-05-05 08:30:44 +02:00
Moritz Schubotz (physikerwelt) b2359d08a1 Suppress warning if mathoid-cli does not return PNG image
* Currently PHP issues a unspecific warning if mathoid-cli does not
return a PNG image.
* This change suppresses this warning.

Bug: T200493
Change-Id: Ice7d12ca9131d76fe233fd332e37484feaf79883
2020-05-01 19:49:25 +02:00
Translation updater bot 864340c450 Localisation updates from https://translatewiki.net.
Change-Id: I74cceda20f6c505551fead797cbd2e67b5c57bab
2020-04-30 08:39:04 +02:00
Translation updater bot f6f8ee7fac Localisation updates from https://translatewiki.net.
Change-Id: I7a762fe722f4b8be90263434169418031e967fcd
2020-04-29 08:36:23 +02:00
Translation updater bot 22390992c2 Localisation updates from https://translatewiki.net.
Change-Id: I584f0eacd8270e3d5c1a1a90e66274b267aa7b9f
2020-04-27 09:03:22 +02:00
Translation updater bot 9e510491f5 Localisation updates from https://translatewiki.net.
Change-Id: I325e1642ba69dd61b049841623d4551abd77f54e
2020-04-24 08:22:58 +02:00
libraryupgrader 9653854b1c build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
  The following rules are failing and were disabled:
  * mediawiki/class-doc

* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: I41574c72228ff6e1aea2a62fee8a0e2929190abd
2020-04-22 14:16:21 +00:00
Translation updater bot b967ce37e2 Localisation updates from https://translatewiki.net.
Change-Id: I2f2f27692003514f8ae8940ea36652a35bf9dca6
2020-04-20 08:42:10 +02:00
libraryupgrader ad1fb25476 build: Updating grunt-banana-checker to 0.9.0
Change-Id: Iefd12e3cd3eb738cc663b7450a658efd0566cdfe
2020-04-19 11:58:32 +00:00
Translation updater bot 102b07d24f Localisation updates from https://translatewiki.net.
Change-Id: Ifd9e35a65d3d8c2716226fb388c1f7654b9fc8a8
2020-04-17 09:07:07 +02:00
Translation updater bot 4023353364 Localisation updates from https://translatewiki.net.
Change-Id: I9ccdbf9e4b748bc87e89461ae56943a77c343c0f
2020-04-15 08:24:13 +02:00
Translation updater bot cddb15e99b Localisation updates from https://translatewiki.net.
Change-Id: I56e2d05ea1d97e2d59474e42ddc1810f2bdc8e99
2020-04-14 08:24:25 +02:00
Translation updater bot 3ca1d25b5a Localisation updates from https://translatewiki.net.
Change-Id: I2c9ab14867d3edbc3a2a83cb16e004e938c6dc0c
2020-04-13 09:01:31 +02:00
Translation updater bot a18974731d Localisation updates from https://translatewiki.net.
Change-Id: Ie374c19bf1b7e6f37c6f44cd448a529cac269792
2020-04-09 08:39:20 +02:00
Translation updater bot 0a560f69d0 Localisation updates from https://translatewiki.net.
Change-Id: I817220f93bfa500623eae141858d2e5fa8591b7e
2020-04-08 09:04:48 +02:00
Translation updater bot bc7fde9cff Localisation updates from https://translatewiki.net.
Change-Id: I99b7d85486c9a2bb4ca4914e8b06fdcb68e2d86b
2020-04-07 08:44:30 +02:00
Translation updater bot 984aaf140c Localisation updates from https://translatewiki.net.
Change-Id: Ie19f1f5411d5e85308bf420f4f53c4648b0dd469
2020-04-06 09:02:18 +02:00
Moritz Schubotz (physikerwelt) c57ee06598 Change default for wgMathLaTeXMLUrl
The xsede project was terminated. Thus a new sane default is needed.
This value is picked up by extension MathSearch.

Bug: T117659
Change-Id: I7845484a603ef008c9373b76202705c818184dc1
2020-04-05 16:35:25 +00:00
jenkins-bot 29d7bf8363 Merge "Use assertStringContainsString in unit tests" 2020-04-05 13:50:07 +00:00
Umherirrender e599afa6db Use assertStringContainsString in unit tests
Using assertContains() with string haystacks is deprecated and will not
be supported in PHPUnit 9. Refactor your test to use
assertStringContainsString() or assertStringContainsStringIgnoringCase()
instead.

Change-Id: Ic35f3c60a7f49dfe244b87192d7f161c117b37e1
2020-04-05 13:46:04 +02:00
libraryupgrader 474df5bd3d build: Updating postcss-sass to 0.4.4
* https://npmjs.com/advisories/1179

Change-Id: Ib37f2192127f0821c65f7eeda30252a478be17af
2020-04-05 07:51:27 +00:00
Translation updater bot f0a67751d0 Localisation updates from https://translatewiki.net.
Change-Id: Id5f420fbd69eefc5a6bebaf929006331beee70ae
2020-04-03 08:28:41 +02:00
C. Scott Ananian 6a9299a2da Update to parserTests v2 (tidy by default)
Bug: T174199
Change-Id: I5e6bb7fa3c36023ba70a24dfef8ea409aad55453
2020-04-02 14:19:46 -04:00
jenkins-bot b9dcb9525e Merge "Add tracking category for pages that use a deprecated LaTeX syntax" 2020-04-02 10:24:00 +00:00
Translation updater bot d0ae8004a0 Localisation updates from https://translatewiki.net.
Change-Id: I5fa842eed47aeec5eb014008f72e212e57452f1f
2020-04-01 08:25:15 +02:00
Moritz Schubotz (physikerwelt) 9dad688f44 Add tracking category for pages that use a deprecated LaTeX syntax
Discussions in the Wikimedia Math Community show that there is consensus
to deprecate the use of MediaWiki specific LaTeX macros that conflict
with LaTeX macros from commonly used packages.
In this change, we show the deprecation warnings generated by mathoid.

Bug: T197842
Change-Id: I24dbb446665fdc227d0e7342fdbf8829b4c1bda4
2020-03-30 21:56:58 +02:00
Translation updater bot 955576ef21 Localisation updates from https://translatewiki.net.
Change-Id: I7c840f6e848024b8a8fefbfcd1612fbcb7433e1a
2020-03-30 09:14:24 +02:00
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