Florianschmidtwelzow has uploaded a new change for review.

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

Change subject: Add Backlinks to Special:(Change|Remove)Credentials
......................................................................

Add Backlinks to Special:(Change|Remove)Credentials

If an user wants to change or remove more then one set of credentials, he has
to know that he has to remove the parameters from the special pages in the url
bar of the browser or has to click through the workflow, which he used to view
the special page for the first change/remove.

This change adds a backlink to Special:(Change|Remove)Credentials when there was
a success of the change or remove of a credential. This link helps the user to 
find
back to the special page to change or remove a second set of credentials, if he 
wants.

Change-Id: Icd459518b258b7e717ca113829add6597eb6e7b8
---
M includes/specials/SpecialChangeCredentials.php
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/32/292832/1

diff --git a/includes/specials/SpecialChangeCredentials.php 
b/includes/specials/SpecialChangeCredentials.php
index 4da8049..2a6c30e 100644
--- a/includes/specials/SpecialChangeCredentials.php
+++ b/includes/specials/SpecialChangeCredentials.php
@@ -213,6 +213,11 @@
                if ( $returnUrl ) {
                        $out->redirect( $returnUrl );
                } else {
+                       $out->addSubtitle( Html::element(
+                               'a',
+                               [ 'href' => 
$this->getPageTitle()->getLocalURL() ],
+                               $this->getTitle()->getPrefixedText()
+                       ) );
                        // messages used: changecredentials-success 
removecredentials-success
                        $out->wrapWikiMsg( "<div 
class=\"successbox\">\n$1\n</div>", static::$messagePrefix
                                . '-success' );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd459518b258b7e717ca113829add6597eb6e7b8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>

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

Reply via email to