From: Florian Date: Sat, 4 Jun 2016 22:48:38 +0000 (+0200) Subject: Add Backlinks to Special:(Change|Remove)Credentials X-Git-Tag: 1.31.0-rc.0~4340^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=4e40ea72dbbb0ee5d2d1586ab411ab928e4570e1;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/specials/SpecialChangeCredentials.php b/includes/specials/SpecialChangeCredentials.php index f22d5f3c33..b81ca3d50f 100644 --- a/includes/specials/SpecialChangeCredentials.php +++ b/includes/specials/SpecialChangeCredentials.php @@ -87,6 +87,8 @@ class SpecialChangeCredentials extends AuthManagerSpecialPage { return; } + $this->getOutput()->addBacklinkSubtitle( $this->getPageTitle() ); + $status = $this->trySubmit(); if ( $status === false || !$status->isOK() ) {