Declare global in Action
authorNemo bis <federicoleva@tiscali.it>
Sat, 16 May 2015 19:48:08 +0000 (21:48 +0200)
committerLegoktm <legoktm.wikipedia@gmail.com>
Sat, 16 May 2015 19:51:32 +0000 (19:51 +0000)
Follows up e928d5bdd0fbc63.

Change-Id: I06e8490865554a0efa7678be6787deb8a22c5b82

includes/actions/Action.php

index fa75e08..79e859a 100644 (file)
@@ -385,6 +385,7 @@ abstract class Action {
         * @since 1.25
         */
        public function addHelpLink( $to, $overrideBaseUrl = false ) {
+               global $wgContLang;
                $msg = wfMessage( $wgContLang->lc( $this->getActionName() ) . '-helppage' );
 
                if ( !$msg->isDisabled() ) {