Commit graph

1657 commits

Author SHA1 Message Date
Umherirrender bae978d140 Rethrow TimeoutException when handling {{#time:}} parser function
timeout while converting timestamps should be a timeout for the whole
parse of that wikitext and not hidden by a invalid time.
Just let the exception bubble up to the caller
See ca71e69f for more information

Change-Id: I0d0decdeb5f4c14d009c6df2ff37920100ba320f
2023-10-02 21:03:18 +02:00
Translation updater bot d5193a9d98 Localisation updates from https://translatewiki.net.
Change-Id: Ia4f7473da4e39e33e21666dcb3053886de7676b3
2023-09-26 08:44:35 +02:00
Translation updater bot 8bec4481cb Localisation updates from https://translatewiki.net.
Change-Id: I0dade24f23470dc51bc320a686a7f6698e680e94
2023-09-19 09:25:50 +02:00
Translation updater bot 27fbf42e4d Localisation updates from https://translatewiki.net.
Change-Id: Ibd51578a18d12f0d7557c692e10f34b44e2e5905
2023-09-07 11:12:50 +02:00
Translation updater bot e260cf3269 Localisation updates from https://translatewiki.net.
Change-Id: Iffcd20d26a18eafacf2c9737ce1bf7261e95f74a
2023-08-28 09:30:39 +02:00
Translation updater bot 16a8ce58b7 Localisation updates from https://translatewiki.net.
Change-Id: I7a5747f611f5dfc2c8b85b814fd5410cf2e9be13
2023-08-07 08:39:20 +02:00
Translation updater bot 9d0bc17ffd Localisation updates from https://translatewiki.net.
Change-Id: I76c76a31f8dc68ec68a07f65870d612251305666
2023-07-24 09:39:14 +02:00
Winston Sung cabeecef03 Follow-up of "Localisation updates from https://translatewiki.net."
Change-Id: I3a48f26f1b2d529d3d8fdd70e86671e2f8b0b057
2023-07-17 08:53:48 +00:00
Translation updater bot f252a24639 Localisation updates from https://translatewiki.net.
Change-Id: Iff0125f6740d284a5189083aca6e51c5290825e4
2023-07-17 10:18:22 +02:00
Translation updater bot d65caf6eac Localisation updates from https://translatewiki.net.
Change-Id: Ica9c126f04096b9c33256b61b81c31c6ba3e75fb
2023-06-19 11:07:44 +02:00
libraryupgrader 4521f4059a build: Updating grunt-banana-checker to 0.11.0
Change-Id: I907c5c67bb8916527381af0bbfdc6e23f6352707
2023-06-01 23:41:29 +00:00
Umherirrender a30fb4b54b tests: Make PHPUnit data providers static
Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: I38462a30a3c739f1475bab07bd355c2e058e7110
2023-05-20 13:54:24 +02:00
Translation updater bot f25f9ca861 Localisation updates from https://translatewiki.net.
Change-Id: Ie739fb13538ee3489bace952e1faa0db03e7dfc5
2023-05-08 10:33:00 +02:00
Translation updater bot 02b5744fd8 Localisation updates from https://translatewiki.net.
Change-Id: Ie3948d99f12208a1aced354076adcb93a1f10a48
2023-05-05 10:40:28 +02:00
libraryupgrader fe356286ff build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I7b51fff33c34f019a073347e315498c97afeecdd
2023-05-04 09:33:04 +00:00
Translation updater bot 3b49976d0d Localisation updates from https://translatewiki.net.
Change-Id: Ie9e366b235198f090c9181cfd2fa241ecfa240ed
2023-05-02 09:00:27 +02:00
libraryupgrader edac9f8dd2 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Id050590110453e6a0dd31b6f154f3ce2282243e2
2023-04-29 08:30:18 +00:00
Translation updater bot d1ed59560a Localisation updates from https://translatewiki.net.
Change-Id: If954aecad83525edcf6bdae216cf3142d5ab74c8
2023-03-20 09:02:07 +01:00
libraryupgrader a27c47d769 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1

Change-Id: If08eb94f64f5c1e16ef4abb43b8aa65615e67681
2023-03-15 22:08:34 +00:00
libraryupgrader 4bd8077ff5 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I3c98c857c7ba35dae60b8eef04b85d011866cb39
2023-03-12 08:01:29 +00:00
thiemowmde 3a20f81f31 Reduce very deep indention in some larger if/elseif blocks
Change-Id: I176f3cd5d28fde83bb2e243cc72d9e7c77ca6f51
2023-01-10 11:56:28 +01:00
Translation updater bot f6d9139116 Localisation updates from https://translatewiki.net.
Change-Id: I9d026b7f21fb75c57e1d72afe73b14067fd71cca
2023-01-09 09:28:14 +01:00
Translation updater bot 2764c0968a Localisation updates from https://translatewiki.net.
Change-Id: Ifad50fa70de8347b989d47ca5c5147c9a3c3ef2a
2022-12-21 09:17:13 +01:00
thiemowmde 02106770a7 Add test cases for {{#if:… and such with no possible output
These are edge-cases we should make sure are covered so we don't
accidentally change how they behave.

Change-Id: Iddd08a7e752ad1fe813ed42b665e4f656c9f516c
2022-12-16 21:50:16 +01:00
Translation updater bot d0881dacd0 Localisation updates from https://translatewiki.net.
Change-Id: I9bec61273e8991b980b7e3e6ca45759d7e87de84
2022-12-05 08:34:09 +01:00
Translation updater bot 5adfb8840f Localisation updates from https://translatewiki.net.
Change-Id: Icfc0efe712fb61668b76c0f76b4279f71919ecd2
2022-11-29 08:59:07 +01:00
jenkins-bot acb8030591 Merge "Replace Parser::getFunctionLang() with ::getTargetLanguage()" 2022-11-16 21:50:41 +00:00
libraryupgrader 3547e7bc23 build: Updating mediawiki/mediawiki-codesniffer to 40.0.1
Change-Id: Ibca0d14724177e2a6dee8b7df15fac798f1e304d
2022-11-16 13:09:05 +00:00
jenkins-bot c72e162c96 Merge "Use HookContainer to register hooks on the fly." 2022-11-09 14:49:06 +00:00
jenkins-bot e02ad426b8 Merge "Remove dead code from #titleparts implementation" 2022-11-08 22:46:18 +00:00
Translation updater bot b3feb7198b Localisation updates from https://translatewiki.net.
Change-Id: Ia12244836fdadbcf86513f17a148d6349bb043e5
2022-11-07 08:35:08 +01:00
daniel f97da7df26 Use HookContainer to register hooks on the fly.
Manipulating $wgHooks is deprecated and unreliable.
Use HookContainer instead.

Needed-By: Iddcb760cf8961316d6527e81b9aa968657d8354c
Change-Id: I413cd2ae43fe4b13917d61a50e190b536fce7279
2022-11-05 20:02:09 +00:00
Translation updater bot 7bf2843201 Localisation updates from https://translatewiki.net.
Change-Id: If55384ec9683b8555cd77a26e6a81c06937f0eea
2022-11-04 09:03:31 +01:00
thiemowmde 928a21605a Remove dead code from #titleparts implementation
It's impossible that explode() returns an empty array. This is dead
code.

Also add tests for the previously untested #titleparts function to
make sure this patch doesn't change any behavior. Including weird
usages with negative numbers.

Change-Id: Ib0d2503fdb0900bf6db3ebbc26d2ff648dbfc86d
2022-11-03 18:30:49 +01:00
thiemowmde ee66f0bfff Simplify weirdly complex ParserFunctions::ifexistInternal()
Personally I find the code much more readable when the private
helper method returns a bool.

Note this patch is intentionally tiny and focusses exclusively on
this one detail. There are many parser tests to prove that nothing
changed.

Change-Id: Ibe07c27aab9cbfc4705769820be679cd54acb79b
2022-11-03 17:50:41 +01:00
thiemowmde 129745609b Remove unused default values from method parameters
These methods are private and never called without these parameters.
These values are dead code.

Change-Id: I422f2d28f60cf3caf6234e5421b3613f80c1e6f1
2022-11-03 07:32:04 +00:00
libraryupgrader fd724482c6 build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I6a3c60602b45daf0a9e4b43f858d41c3dcf2299d
2022-10-21 12:27:00 +00:00
jenkins-bot b646b6b528 Merge "build: Updating mediawiki/mediawiki-phan-config to 0.12.0" 2022-10-13 13:28:57 +00:00
Translation updater bot cb13f4217e Localisation updates from https://translatewiki.net.
Change-Id: I40dcc6bb77cb22577c26a878ae991fa13fa68a42
2022-10-13 08:09:31 +02:00
libraryupgrader 57d87a2e33 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: Ica980c2a25fb00feb6f9775ecb2d7830a3559a95
2022-10-10 21:05:20 +00:00
Translation updater bot 809ba0839d Localisation updates from https://translatewiki.net.
Change-Id: Iecf2cbc29ca16e9eedb2801cc26682e222984764
2022-10-10 10:20:51 +02:00
libraryupgrader f10f99636a build: Updating grunt-banana-checker to 0.10.0
Change-Id: Ifaf2028616809e842d5994c1c010d9c277e3f712
2022-10-07 03:37:19 +00:00
C. Scott Ananian f11b1099d0 Replace Parser::getFunctionLang() with ::getTargetLanguage()
Parser::getFunctionLang() is being deprecated.  These two functions
have been identical since 7df3473cfea59df53debb7a9eefffed8a7f20fb3
in MW 1.19 (2012) and this extension already requires MW >= 1.35.

Bug: T318860
Change-Id: I87a7ceedce173f6de4bb6722ffe594273c7b0359
2022-09-28 15:59:38 -04:00
jenkins-bot 4aae195626 Merge "Replace deprecated Language::isValidBuiltInCode and Language::factory" 2022-09-28 19:58:18 +00:00
Translation updater bot 46187a7441 Localisation updates from https://translatewiki.net.
Change-Id: Ibb14702c4d364a59e7cb5765393973eca19e8310
2022-09-28 08:22:26 +02:00
Fomafix 88e6b48dd0 Avoid confusion about single quotes in README
Change-Id: I6198dbfff86528e976c9a86b5c828fca908d2a4d
2022-09-17 10:09:14 +00:00
Fomafix 6468bf9ebb Replace deprecated Language::isValidBuiltInCode and Language::factory
Change-Id: I4c5bf4d68bcb79da33864dbffe395e3818050eb4
2022-09-17 10:00:50 +00:00
Translation updater bot a29459d71c Localisation updates from https://translatewiki.net.
Change-Id: I21e3cefe84b3aab25ad4328a44169e642a56ede6
2022-09-01 09:34:24 +02:00
Fomafix cd17cb4a18 Remove LEFT-TO-RIGHT MARK (U+200E) from comments and messages
'LEFT-TO-RIGHT MARK' (U+200E) is not needed in the source code
comments and messages.

c8caf26ffd9 removed already the LRM/RLM from Names.php.

Change-Id: Ic9856b680b94d41168eaee14e596c6b21420ad22
2022-08-10 21:23:14 +00:00
Translation updater bot 5c390830fe Localisation updates from https://translatewiki.net.
Change-Id: I1e19fcdc955d77529a4c5ff63707d11825d56282
2022-07-25 08:38:26 +02:00