Jdlrobson has uploaded a new change for review.

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


Change subject: Drop the Special: prefix in return to link
......................................................................

Drop the Special: prefix in return to link

When trying to login/logout to the Watchlist page on a success
says "Return to Special:Watchlist". The Special: prefix is unnecessary
and meaningless to a newbie

Change-Id: Ief4454fe9a7ca8f134f383bea9037391944a932b
---
M includes/OutputPage.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/88/53688/1

diff --git a/includes/OutputPage.php b/includes/OutputPage.php
index 1e0c396..f15f003 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -2402,6 +2402,9 @@
                }
 
                $this->addLink( array( 'rel' => 'next', 'href' => 
$title->getFullURL( '', false, $proto ) ) );
+               if ( $title->isSpecialPage() ) {
+                       $text = $title->getText();
+               }
                $link = $this->msg( 'returnto' )->rawParams(
                        Linker::link( $title, $text, array(), $query, $options 
) )->escaped();
                $this->addHTML( "<p id=\"mw-returnto\">{$link}</p>\n" );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief4454fe9a7ca8f134f383bea9037391944a932b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to