mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
Add help links to special pages
Bug: T228071 Change-Id: I1bfa452ed21db5f6edc8971390b407e57e7e015d
This commit is contained in:
parent
28bc89ad4f
commit
bbdc32d8d6
|
@ -39,6 +39,14 @@ class SpecialGadgetUsage extends QueryPage {
|
|||
$this->activeUsers = $this->getConfig()->get( 'SpecialGadgetUsageActiveUsers' );
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function execute( $par ) {
|
||||
parent::execute( $par );
|
||||
$this->addHelpLink( 'Extension:Gadgets' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Flag for holding the value of config variable SpecialGadgetUsageActiveUsers
|
||||
*
|
||||
|
|
|
@ -39,6 +39,7 @@ class SpecialGadgets extends SpecialPage {
|
|||
public function showMainForm() {
|
||||
$output = $this->getOutput();
|
||||
$this->setHeaders();
|
||||
$this->addHelpLink( 'Extension:Gadgets' );
|
||||
$output->setPageTitle( $this->msg( 'gadgets-title' ) );
|
||||
$output->addWikiMsg( 'gadgets-pagetext' );
|
||||
|
||||
|
@ -227,6 +228,7 @@ class SpecialGadgets extends SpecialPage {
|
|||
public function showExportForm( $gadget ) {
|
||||
global $wgScript;
|
||||
|
||||
$this->addHelpLink( 'Extension:Gadgets' );
|
||||
$output = $this->getOutput();
|
||||
try {
|
||||
$g = GadgetRepo::singleton()->getGadget( $gadget );
|
||||
|
|
Loading…
Reference in a new issue