mediawiki-skins-Vector/includes
Nicholas Ray d190f0ca9c Fix Vector 22 missing user menu on private wikis
When `$wgGroupPermissions['*']['edit'] = false;` is set, an `emptyPortlet` class
is added to the user menu which prevents the menu from showing even though it
contains a login link.

Changes:

* Vector-22 now determines what classes are applied to the user menu's container
instead of core deciding that on Vector's behalf (L761 of
SkinVector::getUserMenuPortletData). This eliminates the undesirable
`emptyPortlet` class. This can potentially be removed upon completion of
T319356.

* Conditionally renders the learn more link based on whether
$userMenuData['is-empty'] is `true` so that we don't show the learn more link
when the anontalk and anoncontribs menu items aren't present.

Bug: T317789
Bug: T324426
Change-Id: I883926c36f59d446076f960ead31f82e51967e70
(cherry picked from commit 990392cdeb)
2022-12-05 01:52:43 +00:00
..
FeatureManagement FeatureManagement: All features have an associated class on the body tag 2022-09-01 22:09:48 +00:00
ResourceLoader Use new ResourceLoader namespace 2022-05-25 10:36:40 +00:00
Services Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00
templates Fix Vector 22 missing user menu on private wikis 2022-12-05 01:52:43 +00:00
Constants.php Icons: Enable feature flag for next set of visual enhancements 2022-09-02 07:54:13 -07:00
Hooks.php FeatureManagement: All features have an associated class on the body tag 2022-09-01 22:09:48 +00:00
ServiceWiring.php Icons: Enable feature flag for next set of visual enhancements 2022-09-02 07:54:13 -07:00
SkinVector.php Fix Vector 22 missing user menu on private wikis 2022-12-05 01:52:43 +00:00
SkinVector22.php [ToC] Show new/modified sections after publishing an edit (new floating ToC) 2022-08-15 20:02:49 +00:00
SkinVectorLegacy.php Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00
VectorServices.php Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00