mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
Fix order of univ lang selector and "not logged in" message
Bug: T121793 Change-Id: I1a42443dab0dd064c35f858ece69e6d9cdb398a1
This commit is contained in:
parent
26f3f8c732
commit
3bd180e3ad
|
@ -513,17 +513,26 @@ class VectorTemplate extends BaseTemplate {
|
|||
|
||||
}
|
||||
|
||||
$personalTools = $this->getPersonalTools();
|
||||
|
||||
$langSelector = '';
|
||||
if ( array_key_exists( 'uls', $personalTools ) ) {
|
||||
$langSelector = $this->makeListItem( 'uls', $personalTools[ 'uls' ] );
|
||||
unset( $personalTools[ 'uls' ] );
|
||||
}
|
||||
|
||||
if ( !$this->data[ 'rtl' ] ) {
|
||||
echo $langSelector;
|
||||
echo $notLoggedIn;
|
||||
}
|
||||
|
||||
$personalTools = $this->getPersonalTools();
|
||||
foreach ( $personalTools as $key => $item ) {
|
||||
echo $this->makeListItem( $key, $item );
|
||||
}
|
||||
|
||||
if ( $this->data[ 'rtl' ] ) {
|
||||
echo $notLoggedIn;
|
||||
echo $langSelector;
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue