Commit graph

2742 commits

Author SHA1 Message Date
Fomafix c1edee1aea Remove flag for ParserOutput
The modules are already in the ParserOutput by change
I8d2a6d92f45f30495263eea716adb4eeaf7ebfbb.
The hack with the flag for the OutputPageParserOutput hook is not
needed anymore.

Do not deploy this change before the caches has been purged or expired.

Bug: T212059
Change-Id: If9427bbf114870ec9747670367915e11750c6525
2023-02-10 12:14:26 +00:00
Translation updater bot ea51fc3e92 Localisation updates from https://translatewiki.net.
Change-Id: Ia77447a49f8759a06777e41813f76ebbbf7c6688
2023-02-08 08:39:19 +01:00
Translation updater bot b89b8ba96f Localisation updates from https://translatewiki.net.
Change-Id: I7c2dfbf4a78457e9118de048bada10c4932c243e
2023-02-03 08:47:12 +01:00
Translation updater bot 0e90efa005 Localisation updates from https://translatewiki.net.
Change-Id: Ica3e9f490ad2f6882fd0641b3d14a93eef7f9307
2023-01-30 08:29:17 +01:00
Translation updater bot 3870748b3e Localisation updates from https://translatewiki.net.
Change-Id: I9f96a551783ef2d7b459456213c923bf095c8605
2023-01-24 08:48:10 +01:00
jenkins-bot 4ead6a9e89 Merge "Add a CategoryCache service for use on Special:TrackingCategories" 2023-01-21 22:33:08 +00:00
Umherirrender 9d98cc1ae6 Add a CategoryCache service for use on Special:TrackingCategories
Replace the dynamic property on SpecialTrackingCategories object,
this was used to store preloaded Category objects.
Dynamic properties are deprecated in php8.2
The preload and storage is now done with the service.

Adjust doc to LinkTarget (Id0cc2ca)

Bug: T324897
Change-Id: I891ad79bc357d32585ef4d9206d398c5a75222aa
2023-01-13 23:05:36 +01:00
Fomafix ed2ec6459b Add modules to ParserOutput
This change adds the modules to the ParserOutput object.

The hack with the flag for the OutputPageParserOutput hook is not
needed anymore. But this will removed in the separate change
If9427bbf114870ec9747670367915e11750c6525 to avoid a caching problem.

This change loads the modules on Special:ExpandTemplates if a
<categorytree> is in the content.

Bug: T212059
Change-Id: I8d2a6d92f45f30495263eea716adb4eeaf7ebfbb
2023-01-12 21:33:16 +00:00
Fomafix 9acd8edf62 Support short link with target in URL path
With this change the following URLs select the target Category:Foo_Bar:
* Special:CategoryTree/Category:Foo_bar
* Special:CategoryTree/Foo_bar
in the UI selector for the category.

Bug: T290070
Change-Id: I169c7c50adb5f6b279c34e44e7fdcf5b1b26c882
2023-01-12 21:08:46 +00:00
Translation updater bot 9ce4bee8f1 Localisation updates from https://translatewiki.net.
Change-Id: I22264c0ee75e4858b910cbd9779e6155fb57f4ff
2023-01-09 09:25:28 +01:00
Translation updater bot 40e209dd0a Localisation updates from https://translatewiki.net.
Change-Id: I972ceefdfa9f2505ea06863bd76093e439cd2945
2023-01-06 08:53:48 +01:00
Translation updater bot 7cc9c7fab4 Localisation updates from https://translatewiki.net.
Change-Id: I9073dff6850290e3cb5748adb0e967e92bd202a7
2023-01-05 09:07:14 +01:00
Translation updater bot 9741cea3fb Localisation updates from https://translatewiki.net.
Change-Id: Ie94164fefc8e6b1a3a16d431657b2d1763b66781
2022-12-29 10:00:52 +01:00
Translation updater bot 02fbb97124 Localisation updates from https://translatewiki.net.
Change-Id: Ice47d83cee9b127a6d1d63b5a0316d684d3ab8c9
2022-12-21 09:14:14 +01:00
Umherirrender 8b4ab1fd43 Use LinkBatchFactory to create LinkBatch objects
Bug: T325591
Change-Id: I3c529e62e45a38e6752f37b6bf36a1e727511e46
2022-12-19 21:37:43 +01:00
Translation updater bot 0a9fcee1b6 Localisation updates from https://translatewiki.net.
Change-Id: I4abfcb8eda41222f0e7f7feb5eeaee5fe03a0812
2022-12-16 08:46:27 +01:00
Translation updater bot fcaf330c56 Localisation updates from https://translatewiki.net.
Change-Id: I3bb60db797030d6fe5ebdc2d69f84ed939f3a21a
2022-12-15 11:35:14 +01:00
Translation updater bot 1654ed152c Localisation updates from https://translatewiki.net.
Change-Id: Ifd663f39c810ca1bad806335dd6ec17b9eb030a5
2022-12-09 08:45:25 +01:00
jenkins-bot 18000c7453 Merge "Optimize PHP code semantic" 2022-12-02 00:29:41 +00:00
Translation updater bot 73f88e7183 Localisation updates from https://translatewiki.net.
Change-Id: Ifacf9642c865fc0f90e12446f7d5a81bb24adf86
2022-12-01 08:15:00 +01:00
Translation updater bot 303e1586e2 Localisation updates from https://translatewiki.net.
Change-Id: I371865ace996970b2158420049bcd3f0461a1a48
2022-11-28 08:49:09 +01:00
Fomafix 828566ef60 Optimize PHP code semantic
* Mark $mOptions as private. There is no external reference.
* CategoryTree::makeTitle don't return false. A check for false is not
  needed.
* A class attribute should not start with a space.
* $title->isExternal() is equivalent to $title->getInterwiki() !== ''.
* Use $title->inNamespace( NS_CATEGORY ) instead of
  $title->getNamespace() === NS_CATEGORY.

Change-Id: Iddad84ff5a18080d1216346ec2a906c955a644a4
2022-11-12 19:08:16 +00:00
jenkins-bot ba6e585427 Merge "Check for null after Title::newFromText" 2022-11-12 17:31:19 +00:00
Translation updater bot 935cb6d394 Localisation updates from https://translatewiki.net.
Change-Id: I9644aefe6ddb65346721d364e346cc7f22719fd8
2022-11-11 08:40:13 +01:00
Fomafix c5b34028e3 Remove phpcs exclude rules and update PHP code
Consistently use single line @var declararation.

Change-Id: I02210ddcc1c523bda6e26adb17e7b6bd38db752d
2022-11-10 20:15:44 +00:00
Fomafix cf8538086c Check for null after Title::newFromText
Title::newFromText returns null on invalid title.

Change-Id: Iaef69584eff33b1b13669f8d0a3b8eeeba3755cc
2022-11-10 19:27:54 +00:00
Translation updater bot abbc5c5e32 Localisation updates from https://translatewiki.net.
Change-Id: I7b38e5d75b72a07de409cb5cc4f321da382bfc2f
2022-10-13 08:08:06 +02:00
jenkins-bot 958420e41d Merge "Localisation updates from https://translatewiki.net." 2022-10-10 08:25:49 +00:00
Translation updater bot bba8535353 Localisation updates from https://translatewiki.net.
Change-Id: I4772f7c9667003e84484f37117be40e97e7cb8a9
2022-10-10 10:19:36 +02:00
Translation updater bot 8d83ca7e36 Localisation updates from https://translatewiki.net.
Change-Id: I9034fabc9bc3f38c0ec42738c878a430ea77245b
2022-10-10 08:57:29 +02:00
libraryupgrader 8cad15b9d0 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.11.1 → 0.12.0

npm:
* grunt: 1.5.2 → 1.5.3
* grunt-banana-checker: 0.9.0 → 0.10.0

Change-Id: I278b8c48587f564580b64cd78059197cc0c53074
2022-10-09 02:20:28 +00:00
Translation updater bot ef3356b2d1 Localisation updates from https://translatewiki.net.
Change-Id: I303adc8ed138f62e5861d54a0a06a57d697d8225
2022-10-03 09:45:17 +02:00
Translation updater bot 07c6e3d857 Localisation updates from https://translatewiki.net.
Change-Id: I3c4485e75bcf88047a0938d2d7e4cbdf8e73c60f
2022-09-30 08:53:09 +02:00
Translation updater bot 405b411fe6 Localisation updates from https://translatewiki.net.
Change-Id: Ied339124dfb445715e00082ad0732eda478cacbb
2022-09-28 08:20:51 +02:00
Translation updater bot a0c660b424 Localisation updates from https://translatewiki.net.
Change-Id: Ie8d2deb8e0d69b1f176fd38be37b649f89e8866b
2022-09-22 08:45:27 +02:00
Translation updater bot dbf4fc42c7 Localisation updates from https://translatewiki.net.
Change-Id: I2a93156a6533a148c1544b5effa693b296b4e061
2022-09-05 10:09:58 +02:00
Translation updater bot 17c6baae82 Localisation updates from https://translatewiki.net.
Change-Id: Iab68a5cdcb9c8b97ecf2f971975f428eee0edcc6
2022-08-29 09:13:24 +02:00
Translation updater bot eabefc08bd Localisation updates from https://translatewiki.net.
Change-Id: I73d7f46356c6b430c25e8d340c4e95d6a1cde438
2022-08-22 08:22:21 +02:00
Translation updater bot d60a353148 Localisation updates from https://translatewiki.net.
Change-Id: I3b5bf96963cc6729cc7655aff9873802f5e71564
2022-08-18 08:37:50 +02:00
Translation updater bot 5ad0c05c6c Localisation updates from https://translatewiki.net.
Change-Id: I12e75c7677a3e660da0c0f26f4ca5177bc10738c
2022-08-15 08:25:48 +02:00
Translation updater bot b2584cfe8c Localisation updates from https://translatewiki.net.
Change-Id: I24bb57f0002baab668bc59410d62131714065f84
2022-08-09 08:19:17 +02:00
Translation updater bot 8a8745ce9b Localisation updates from https://translatewiki.net.
Change-Id: I5b189973e6e4fb696037157ed58fd597196b981a
2022-08-05 08:33:16 +02:00
Translation updater bot 187b26bdbe Localisation updates from https://translatewiki.net.
Change-Id: I6b7132e2193ba1bb5ee10a9127e749f639095c6b
2022-08-03 08:17:55 +02:00
Translation updater bot e0c50dd700 Localisation updates from https://translatewiki.net.
Change-Id: Id113cc56992928b55eebc457dff05f6847047a30
2022-08-01 08:21:41 +02:00
Translation updater bot 2fdf057728 Localisation updates from https://translatewiki.net.
Change-Id: I537bea85182ec5686469d432d82ba3197eec15fe
2022-07-18 08:14:03 +02:00
Translation updater bot 7096a16513 Localisation updates from https://translatewiki.net.
Change-Id: Icd98acc433e855b28d1817adaf267b0d837433b5
2022-07-12 08:14:28 +02:00
Translation updater bot fdfa05d01a Localisation updates from https://translatewiki.net.
Change-Id: I3e056fe692eeeb742ad5a44dbd6e0cf9453bc7a4
2022-07-08 08:52:11 +02:00
Translation updater bot 8aeb868789 Localisation updates from https://translatewiki.net.
Change-Id: Ie4b001257c20d3b88e0ab88a69d27c1230f28523
2022-07-04 08:21:39 +02:00
Translation updater bot 57e0d0207c Localisation updates from https://translatewiki.net.
Change-Id: I841f265128609d38f8cbfbfbf1a03ac6206eb161
2022-06-23 09:02:27 +02:00
Translation updater bot fad74af582 Localisation updates from https://translatewiki.net.
Change-Id: I29ac5002588fec78a490692b24f602bff0a38973
2022-06-20 08:16:22 +02:00