* Update skins/Vector from branch 'REL1_43'
to e1b431a6646a4947ba629104e67ea72ba61d99a6
- Do not show empty user links dropdown in private wikis
In situations where anon account creation is disabled or when
combined login link would be used, the usermenu array contains
single element (for 'login' or 'login/create') instead of two
elements ('login' and 'create account' items separately)
If $wgWikimediaMessagesAnonDonateLink is enabled through the
WikimediaMessages extension, the third element 'sitesupport'
exists, making the number of anon items either 1 or 2 or 3.
This patch fixes $isDefaultAnonUserLinks variable to account
for all the cases
Additionally, if even login is disabled, the element count can be
zero and in such case we need to hide the dropdown in all cases
(not only on large viewports) because it would always be empty.
This patch passes the userlinks count to ::getDropdown() and adds
CSS class when appropriate to hide the drowpdown completely.
Bug: T332743
Change-Id: I1ce5e1ea30917a6e80ef00f3c1703cbd0ecb6968
(cherry picked from commit 02dfbd4acb423cc1e3fc0059d9da466b69f4b81e)
|
||
|---|---|---|
| .. | ||
| MinervaNeue@1df578e274 | ||
| MonoBook@0b46ecb8fe | ||
| Timeless@ba56a3d3d2 | ||
| Vector@e1b431a664 | ||
| .gitignore | ||
| .vsls.json | ||
| README | ||
== User Information ==
Skins, such as the default skin Vector, are distributed separately. Drop them
into this directory and enable as per the skin's installation instructions.
You can find a list of available skins at
<https://www.mediawiki.org/wiki/Special:MyLanguage/Category:All_skins>,
and more information about installing and configuring skins at
<https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Skin_configuration>.
If you are a developer, you might want to fetch the skin tree in another
directory and make a symbolic link:
mediawiki/skins$ ln -s ../../skins-trunk/FooBar
The default skin Vector can be installed by cloning from Git:
git clone https://gerrit.wikimedia.org/g/mediawiki/extensions/Vector
Other skins are also available:
https://gerrit.wikimedia.org/g/mediawiki/extensions
Please note that under POSIX systems (Linux...), parent of a symbolic path
refers to the link source, NOT to the target! You should check the env
variable MW_INSTALL_PATH in case the extension is not in the default location.
The following code snippet lets you override the default path:
$IP = getenv( 'MW_INSTALL_PATH' );
if ( $IP === false ) {
$IP = __DIR__ . '/../..';
}
require_once "$IP/maintenance/Maintenance.php"; // a MediaWiki core file