Remove "Not logged in" from the personal URLs array
authorStephan Gambke <s7eph4n@gmail.com>
Wed, 24 Feb 2016 21:21:07 +0000 (22:21 +0100)
committerJdlrobson <jrobson@wikimedia.org>
Tue, 17 May 2016 20:06:43 +0000 (20:06 +0000)
The array of personal URLs should only contain links to the personal tools of the
user. "Not logged in" is a status message, not a personal URL, so it should not
appear in that array. The status should instead be indicated to the user by the
skin itself in whatever way seems best for the skin in question.

The following patches depend on this one to reintroduce the message:
* Vector skin: Ic560d3fd
* Monobook skin: I7001e311

Bug: T121793
Bug: T127758
Change-Id: I5cfa9b4e2f4eb420d5fda6b1c6ce28926cb8e738

includes/skins/SkinTemplate.php

index 10d9cb9..cefc5bc 100644 (file)
@@ -695,11 +695,6 @@ class SkinTemplate extends Skin {
 
                        // No need to show Talk and Contributions to anons if they can't contribute!
                        if ( User::groupHasPermission( '*', 'edit' ) ) {
-                               // Show the text "Not logged in"
-                               $personal_urls['anonuserpage'] = [
-                                       'text' => $this->msg( 'notloggedin' )->text()
-                               ];
-
                                // Because of caching, we can't link directly to the IP talk and
                                // contributions pages. Instead we use the special page shortcuts
                                // (which work correctly regardless of caching). This means we can't