diff --git a/VectorTemplate.php b/VectorTemplate.php index 5203926..7a02b36 100644 --- a/VectorTemplate.php +++ b/VectorTemplate.php @@ -499,10 +499,32 @@ class VectorTemplate extends BaseTemplate {

msg( 'personaltools' ) ?>

html( 'userlangattributes' ) ?>> getSkin()->getUser()->isLoggedIn() && + User::groupHasPermission( '*', 'edit' ) ){ + + $notLoggedIn = + Html::rawElement( 'li', + [ 'id' => 'pt-anonuserpage' ], + $this->getMsg( 'notloggedin' )->escaped() + ); + + } + + if ( !$this->data[ 'rtl' ] ) { + echo $notLoggedIn; + } + $personalTools = $this->getPersonalTools(); foreach ( $personalTools as $key => $item ) { echo $this->makeListItem( $key, $item ); } + + if ( $this->data[ 'rtl' ] ) { + echo $notLoggedIn; + } ?>