From a0626a06d9ef2fa4ea29f1d995d787dfd33147ca Mon Sep 17 00:00:00 2001 From: Stephan Gambke Date: Wed, 18 May 2016 22:30:48 +0200 Subject: [PATCH] Fix order of univ lang selector and "not logged in" message Bug: T121793 Change-Id: Ia6406fe535916684c998225f052f7e8b2231cbe1 --- MonoBookTemplate.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MonoBookTemplate.php b/MonoBookTemplate.php index c4ff806..7f496a0 100644 --- a/MonoBookTemplate.php +++ b/MonoBookTemplate.php @@ -120,6 +120,14 @@ class MonoBookTemplate extends BaseTemplate {
html( 'userlangattributes' ) ?>> getPersonalTools(); + + if ( array_key_exists( 'uls', $personalTools ) ) { + echo $this->makeListItem( 'uls', $personalTools[ 'uls' ] ); + unset( $personalTools[ 'uls' ] ); + } + if ( !$this->getSkin()->getUser()->isLoggedIn() && User::groupHasPermission( '*', 'edit' ) ) { @@ -129,7 +137,7 @@ class MonoBookTemplate extends BaseTemplate { } - foreach ( $this->getPersonalTools() as $key => $item ) { ?> + foreach ( $personalTools as $key => $item ) { ?> makeListItem( $key, $item ); ?>