Florianschmidtwelzow has uploaded a new change for review.

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

Change subject: Hygiene: Link to Loginpage to view Watchlist should contain 
error message
......................................................................

Hygiene: Link to Loginpage to view Watchlist should contain error message

Be consistent with the redirect, when you request Special:Watchlist directly.

Change-Id: Ie2bfb0e2cb11809e83ba0347c1a079a681c9d995
---
M includes/skins/SkinMinerva.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/48/165248/1

diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php
index 4265134..7048993 100644
--- a/includes/skins/SkinMinerva.php
+++ b/includes/skins/SkinMinerva.php
@@ -298,7 +298,10 @@
                                                'text' => wfMessage( 
'mobile-frontend-main-menu-watchlist' )->escaped(),
                                                'href' => 
$this->getUser()->isLoggedIn() ?
                                                        
$watchTitle->getLocalUrl( $watchlistQuery ) :
-                                                       $this->getLoginUrl( 
array( 'returnto' => $watchTitle ) ),
+                                                       $this->getLoginUrl( 
array(
+                                                               'returnto' => 
$watchTitle,
+                                                               'warning' => 
'watchlistanontext'
+                                                       ) ),
                                                'class' => 'icon-watchlist icon 
icon-text',
                                        ),
                                ),

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie2bfb0e2cb11809e83ba0347c1a079a681c9d995
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.wel...@t-online.de>

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

Reply via email to