From: matejsuchanek Date: Wed, 27 Jan 2016 12:10:23 +0000 (+0100) Subject: Add help link to the top of history pages X-Git-Tag: 1.31.0-rc.0~8187 X-Git-Url: https://git.cyclocoop.org/admin/%7B%7Blocalurl:Special:UserLogin%7D%7D?a=commitdiff_plain;h=5075cad455220c6194338681a7473f358d58c8fa;p=lhc%2Fweb%2Fwiklou.git Add help link to the top of history pages It links to https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Page_history but the target can be changed locally by creating "MediaWiki:History-helppage". Bug: T124885 Change-Id: Iffd396ea9dfb5216fa65ed9780f3c788fde4a3e5 --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index ca47fcec19..43260d0d12 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -132,6 +132,8 @@ class HistoryAction extends FormlessAction { return; } + $this->addHelpLink( '//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Page_history', true ); + // Fail nicely if article doesn't exist. if ( !$this->page->exists() ) { $out->addWikiMsg( 'nohistory' );