Commit graph

746 commits

Author SHA1 Message Date
Daimona Eaytoy b7a537f72a Update tests for PHPUnit 9.6
- Avoid withConsecutive()

Bug: T342110
Change-Id: Ia7c60dd6789317b269d6b8641d6663c0905167e4
2023-11-27 18:20:53 +00:00
Translation updater bot dcc784e1c2 Localisation updates from https://translatewiki.net.
Change-Id: I0c3380db3bfd782a2a16989d543b5fb2d536220d
2023-11-13 08:41:52 +01:00
jenkins-bot 8daec28e9e Merge "Only take one field in fetchFieldValues" 2023-11-08 11:44:05 +00:00
Amir Sarabadani 9c24383f80 Only take one field in fetchFieldValues
That is causing T350726 and we already set the field in one line above

Follows-Up: I63ac37c2b73073e8e323f6627785955196cd148c
Bug: T350726
Change-Id: I9f28e326aefa206fe8f4d3f6a1038740fed9b0d4
2023-11-08 12:00:09 +01:00
Translation updater bot 5b4e396011 Localisation updates from https://translatewiki.net.
Change-Id: Ie539f9d30d9b940f1345a36c54420b516727e5f8
2023-11-07 09:08:24 +01:00
Amir Sarabadani 5ffaf34258 Add support for read new of pagelinks migration
Bug: T346457
Change-Id: I63ac37c2b73073e8e323f6627785955196cd148c
2023-11-01 18:51:38 +01:00
Translation updater bot e9c57b5a9b Localisation updates from https://translatewiki.net.
Change-Id: Iaf119318f30ea03afcdcee35c3ad9f963504ddb9
2023-10-30 17:59:40 +01:00
Fomafix 4b86859269 Use a return type hint for PageImages::getPageImageInternal()
Now getPageImageInternal returns null instead of false.

Fix the comment in fetchPageImage(): false means no cache.

Also add a return type hint to PageImages::factory().

Change-Id: I696f24390be530e7eea21957e0e46752d1bb3030
2023-10-21 13:06:16 +00:00
jenkins-bot 421e55b852 Merge "Inject service RepoGroup in APIPropModules" 2023-10-16 03:18:32 +00:00
jenkins-bot abfaa34709 Merge "Replace deprecated global function wfGetDB()" 2023-10-16 03:06:07 +00:00
jenkins-bot 053957162a Merge "Inject service RepoGroup in PageImages" 2023-10-16 03:06:06 +00:00
jenkins-bot df9b7a9c92 Merge "Convert PageImages::fetchPageImage to a nonstatic method" 2023-10-16 03:05:22 +00:00
Fomafix 21fdd8a9db Inject service RepoGroup in APIPropModules
Change-Id: Ifa1334391af08f09908a92f0a9b7774eda58c399
2023-10-15 20:17:05 +00:00
Fomafix 318407932c Replace deprecated global function wfGetDB()
Bug: T330641
Change-Id: If0427da7a6d2de9d1ec00bf1ff7e5b8a495617e9
2023-10-15 18:50:46 +00:00
Fomafix 029af825a9 Inject service RepoGroup in PageImages
Change-Id: I91d12fe25fbd6ee952d635cd24b5047be8790c80
2023-10-15 18:33:00 +00:00
Fomafix 1f95b141a6 Convert PageImages::fetchPageImage to a nonstatic method
The public static function PageImages::getPageImage must stay unchanged
because this function is called by other extensions.

Change-Id: I73f7253581ebc894ef6dcd41bd4713f7d9f53421
2023-10-15 18:21:40 +00:00
Fomafix efa6c4f0ce Inject services on JobClasses
Change-Id: Ic0e965dca31b41ab76e59a3d2672069464418de8
2023-10-15 13:52:13 +00:00
Fomafix 627a4bf0ef Use $this->getServiceContainer() in maintenance
Change-Id: I3a3c490d67851bfa40f5def03a5e30752db1454b
2023-10-15 11:53:38 +00:00
Umherirrender 09d47340eb Use the expression assignment operator to simplify code
Suggested by phan, available since php7.4

Change-Id: Iadee84c7b62f9aeac31ade702bc33764d35ef9c8
2023-10-14 00:55:37 +02:00
Translation updater bot 5dd3212097 Localisation updates from https://translatewiki.net.
Change-Id: I5e54affa2b9800302e424deaae27650568bbe680
2023-09-18 08:44:23 +02:00
Translation updater bot f6a0e4a403 Localisation updates from https://translatewiki.net.
Change-Id: Icd2ab5df5d76532b2ce3c07951c106f00a8ff63a
2023-09-14 09:30:26 +02:00
Translation updater bot fbc194fe27 Localisation updates from https://translatewiki.net.
Change-Id: I9e5192031e94e34038f73180df147ac9d8790039
2023-09-11 09:04:38 +02:00
jenkins-bot 6dfd784637 Merge "build: Update MediaWiki requirement to 1.41" 2023-08-24 03:33:41 +00:00
jenkins-bot 19f91063fb Merge "build: Update MediaWiki requirement to 1.41" 2023-08-24 03:31:29 +00:00
jenkins-bot aef7d17348 Merge "Use namespaced MediaWiki\Request\FauxRequest" 2023-08-20 01:07:09 +00:00
Umherirrender b8dd616a03 Use namespaced MediaWiki\Request\FauxRequest
Bug: T321681
Change-Id: I9c6b8bfc935a47c62c3e106a1bf4532ef4d12134
2023-08-20 01:54:45 +02:00
Umherirrender ec4d1bed4d Use namespaced MediaWiki\Page\PageProps
Bug: T321681
Change-Id: I5298c09e2869a21e6616cb6e8917da51177c7987
2023-08-20 01:21:38 +02:00
Umherirrender 0f44aa4b05 Use namespaced Title
Bug: T321681
Change-Id: Id8e166fd8a54ee84500a67d8729ca6562f003be5
2023-08-19 20:18:00 +02:00
James D. Forrester 1a8a759d4e build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I43f3097112be450202cdaf7326daeae388e16e6d
2023-08-19 13:58:01 +08:00
James D. Forrester f1761d8c0a build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I322cb6469d098257febffcd07f482754cd4c22d6
2023-08-19 13:57:56 +08:00
gerritbot a85ae32a5e Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I80f2f9cdd569d549de8b403226000bb5c88fcb67
2023-08-19 04:18:19 +00:00
Umherirrender 7f3a11f327 Use HookHandlers for MobileFrontend hook
Bug: T271021
Change-Id: I9293e1fee102b9a4274ef460b9c7556e0c7c6f6a
2023-08-15 10:03:09 +02:00
Translation updater bot d96e200072 Localisation updates from https://translatewiki.net.
Change-Id: I353af94a1ea2e0b63e3c968de299de939adfa358
2023-08-15 08:26:21 +02:00
Translation updater bot 38f7faed91 Localisation updates from https://translatewiki.net.
Change-Id: I0f4a0ac440a98c43ff1f07d3357e0e3f1d1ddb13
2023-08-14 09:18:13 +02:00
Translation updater bot 35fc1e3a09 Localisation updates from https://translatewiki.net.
Change-Id: Ic1b3ede785f06cf17b9cce4342efdd93c93f83c6
2023-08-10 09:41:33 +02:00
Translation updater bot 5079a2643e Localisation updates from https://translatewiki.net.
Change-Id: Iecc5d04218bc1ee51860cc3d0330723a2cd7eca0
2023-08-09 09:15:31 +02:00
Translation updater bot 576875fb46 Localisation updates from https://translatewiki.net.
Change-Id: I208fd2e990b1a774e88030208bba2236d99e461a
2023-08-08 09:01:23 +02:00
Translation updater bot 29b7233c44 Localisation updates from https://translatewiki.net.
Change-Id: Ie550169032d179326654bb5697296e55793a0bbe
2023-08-07 08:39:17 +02:00
Umherirrender a85ff941ef i18n: Split apihelp for parameter prop=pageimages&piprop=
Easier to translate
There is no visible change on Special:ApiHelp/query+pageimages

Enable use of existing paramvalue apihelp messages for pilicense

Bug: T285545
Change-Id: Iea70490705af9224b3c93669bd5a6e9be7043410
2023-08-05 02:20:47 +02:00
Translation updater bot d7a4b18ffd Localisation updates from https://translatewiki.net.
Change-Id: I6068151adefe4916fe941621e7ac4240a32ee76c
2023-07-24 09:39:10 +02:00
Translation updater bot 3f2d51fa08 Localisation updates from https://translatewiki.net.
Change-Id: I68400225b26a0835066772c72e71e0533131a93a
2023-06-26 12:40:22 +02:00
jenkins-bot 6b1bc3347d Merge "ParserFileProcessing: Inject TitleFactory" 2023-06-24 10:40:19 +00:00
jenkins-bot 58619f2384 Merge "ParserFileProcessing: Use ConnectionProvider and QueryBuilder" 2023-06-24 10:40:17 +00:00
Umherirrender 9ecfd6958d api: Remove old apihelp i18n description messages
No longer used since 1.33

Automatically removed message keys with "doc-apihelp-description" in qqq

Bug: T340253
Change-Id: I57ecb8cad5c1cc0156c6137a2bfc063d01939c17
2023-06-24 00:07:56 +02:00
Umherirrender 619d623104 ParserFileProcessing: Inject TitleFactory
Check the parsed title if valid and can exists on the database

Change-Id: I32805de6ab4b9dca7d56faf982762f6949fc3203
2023-06-21 23:03:44 +02:00
Umherirrender a9b4b4877f ParserFileProcessing: Use ConnectionProvider and QueryBuilder
Bug: T312501
Change-Id: I4c5b5b773cbf1bf77dae7c189f65c8760091e384
2023-06-21 22:50:19 +02:00
libraryupgrader 59549ea379 build: Updating grunt-banana-checker to 0.11.0
Change-Id: Ia90fe1a89ac6bc43a03dc8b1e4bb4d174d5aff08
2023-06-01 22:32:07 +00:00
Translation updater bot 264a57735c Localisation updates from https://translatewiki.net.
Change-Id: I81a3d4032a34e4c57905e900e6bc06aa17c74651
2023-05-29 09:59:50 +02:00
Translation updater bot 51c8d4b307 Localisation updates from https://translatewiki.net.
Change-Id: I2b2856e1702654961c31adddb8859b177fb36d6f
2023-05-22 08:46:12 +02:00
Umherirrender e46bda7e67 tests: Make PHPUnit data providers static
Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: If55e19c0a088aef8ab84a09c8f1949320d035db4
2023-05-20 17:29:11 +02:00