Fix order of univ lang selector and "not logged in" message

Bug: T121793
Change-Id: I1a42443dab0dd064c35f858ece69e6d9cdb398a1
This commit is contained in:
Stephan Gambke 2016-05-18 22:23:15 +02:00 committed by Foxtrott
parent 26f3f8c732
commit 3bd180e3ad
1 changed files with 10 additions and 1 deletions

View File

@ -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' ] ) { if ( !$this->data[ 'rtl' ] ) {
echo $langSelector;
echo $notLoggedIn; echo $notLoggedIn;
} }
$personalTools = $this->getPersonalTools();
foreach ( $personalTools as $key => $item ) { foreach ( $personalTools as $key => $item ) {
echo $this->makeListItem( $key, $item ); echo $this->makeListItem( $key, $item );
} }
if ( $this->data[ 'rtl' ] ) { if ( $this->data[ 'rtl' ] ) {
echo $notLoggedIn; echo $notLoggedIn;
echo $langSelector;
} }
?> ?>
</ul> </ul>