Add help link to the top of history pages
authormatejsuchanek <matejsuchanek97@gmail.com>
Wed, 27 Jan 2016 12:10:23 +0000 (13:10 +0100)
committerFlorianschmidtwelzow <florian.schmidt.stargatewissen@gmail.com>
Wed, 27 Jan 2016 16:55:18 +0000 (16:55 +0000)
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

includes/actions/HistoryAction.php

index ca47fce..43260d0 100644 (file)
@@ -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' );