Use getActionName() static
authorFederico Leva <federicoleva@tiscali.it>
Mon, 18 May 2015 20:20:00 +0000 (22:20 +0200)
committerNemo bis <federicoleva@tiscali.it>
Mon, 18 May 2015 20:27:48 +0000 (20:27 +0000)
Change-Id: I3225ecd2b8e4294c28ea0aa664f0246d0d028b11

includes/actions/Action.php

index 79e859a..bb6a4d5 100644 (file)
@@ -386,7 +386,9 @@ abstract class Action {
         */
        public function addHelpLink( $to, $overrideBaseUrl = false ) {
                global $wgContLang;
-               $msg = wfMessage( $wgContLang->lc( $this->getActionName() ) . '-helppage' );
+               $msg = wfMessage( $wgContLang->lc(
+                       Action::getActionName( $this->getContext() )
+                       ) . '-helppage' );
 
                if ( !$msg->isDisabled() ) {
                        $helpUrl = Skin::makeUrl( $msg->plain() );