* @since 1.25
*/
public function addHelpLink( $to, $overrideBaseUrl = false ) {
- $msg = wfMessage( $wgContLang->lc( $this->getActionName() ) . '-helppage' );
+ global $wgContLang;
+ $msg = wfMessage( $wgContLang->lc(
+ Action::getActionName( $this->getContext() )
+ ) . '-helppage' );
if ( !$msg->isDisabled() ) {
$helpUrl = Skin::makeUrl( $msg->plain() );