Foxtrott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/289545

Change subject: Fix order if univ lang selector and "not logged in" message
......................................................................

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

Bug: T121793
Change-Id: I1a42443dab0dd064c35f858ece69e6d9cdb398a1
---
M VectorTemplate.php
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Vector 
refs/changes/45/289545/1

diff --git a/VectorTemplate.php b/VectorTemplate.php
index 7a02b36..5b27141 100644
--- a/VectorTemplate.php
+++ b/VectorTemplate.php
@@ -513,17 +513,26 @@
 
                                                        }
 
+                                                       $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>

-- 
To view, visit https://gerrit.wikimedia.org/r/289545
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1a42443dab0dd064c35f858ece69e6d9cdb398a1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/Vector
Gerrit-Branch: master
Gerrit-Owner: Foxtrott <s7ep...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to