Add Backlinks to Special:(Change|Remove)Credentials
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 4 Jun 2016 22:48:38 +0000 (00:48 +0200)
committerFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Wed, 11 Jan 2017 19:26:35 +0000 (20:26 +0100)
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

includes/specials/SpecialChangeCredentials.php

index f22d5f3..b81ca3d 100644 (file)
@@ -87,6 +87,8 @@ class SpecialChangeCredentials extends AuthManagerSpecialPage {
                        return;
                }
 
+               $this->getOutput()->addBacklinkSubtitle( $this->getPageTitle() );
+
                $status = $this->trySubmit();
 
                if ( $status === false || !$status->isOK() ) {