Commit Graph

11 Commits

Author SHA1 Message Date
Fomafix
e44e4c4c0c Remove phpcs exclude rules and update PHP code
Change-Id: Ie37deda368a4d163cf324988721033829ae8af77
2022-11-13 18:33:34 +00:00
NikG
8a55528772 Compact language list preference should be ignored for Vector 2022 skin
The Compact language list preference was intended to control whether to
show all languages directly or show just a few of them (with option to
search for the rest) instead. However, with the new Vector 2022 skin,
there is only a button to access language selection and thus, this
setting should be ignored for this skin.

This patch modifies the "isCompactLinksEnabled" method inside Hooks
to always return true when the skin is set to Vector 2022 (when ULS
features are enabled).

Bug: T319690
Change-Id: Ic8a537d31ee4dad02932a04017f19537140e0c1c
2022-11-02 14:38:55 +00:00
Fomafix
35852fee74 Use WebRequest::getRawVal instead of WebRequest::getText
The UTF-8 normalization for the URL attributes `languagecode`, `uselang`
and `setlang` are not needed.

Change-Id: Ib204629fb15e2578bba09be4c40d0210eb81dd77
2022-08-24 06:19:52 +00:00
Jon Robson
06091efcd0 Limit ULSPosition check to non-Vector 2022 skins
I'm not sure what this is for, but it's definitely not needed
in Vector 2022 skin. It also prevents the uls-after-portlet-link
element from appearing inside the language button when ULS is disabled.

Bug: T275147
Change-Id: I8f6c1361040b72107f2d45bfc18e22d6b8f2021c
2022-07-28 04:32:43 +00:00
Abijeet
4632f33e6a Drop support for MediaWiki 1.36
Bug: T311510
Change-Id: I9bc2f91f274df1d37ebad639b42ee4b542274db9
2022-07-26 11:04:40 +00:00
Thiemo Kreuz
78c25ebcf7 Fix-ups to comments and User interface usages
* Use isRegistered() from the more narrow UserIdentity interface.
* More specific type hints.
* Remove comments that literally repeat the code.

Change-Id: Icd0eaf8236be41b258efcf81d581540d2448e9e3
2022-04-20 09:54:25 +02:00
Reedy
f8eda0ca0c Use namespaced Babel class
Depends-On: I16411d99d97762606ed43e5a0093ff7ed1cfa0b8
Change-Id: I15ae2cd07b88991ed6f150e12af30bee9499dbdc
2022-03-06 14:41:56 +00:00
Reedy
430afafeb7 Use ExtensionRegistry to see if Babel is loaded
Change-Id: Iabc24b4580bab39a6d232d61e9c52a641cce41a3
2022-03-06 14:41:10 +00:00
Abijeet
6e6635bdbb Move version check inside PersonalUrls hook
Stop additional conditional hook if MW < 1.37, and move the check
to inside the hook itself

Bug: T299305
Change-Id: Ied1c5c0beee015d7b0a8d6bd750346f4a8a5aaa1
2022-01-24 09:24:43 +00:00
Abijeet
30986e6d9e Remove backward compatibility for MW <= 1.35
Bug: T298856
Change-Id: I1e635785d0a29d87f510e729b11fce9a2eb68e11
2022-01-18 12:51:07 +00:00
Reedy
f9532855ad Namespace extension
Change-Id: I79aa319f177589d85446888289568748cd63d1c5
2022-01-05 10:47:22 +00:00