$href = $m[2] === '' ? '#' . $m[1] : $m[2];
} elseif ( $helptitle !== null ) {
$href = Title::newFromText( str_replace( '$1', $m[1], $helptitle ) . $m[2] )
- ->getFullUrl();
+ ->getFullURL();
} else {
$href = wfAppendQuery( wfScript( 'api' ), array(
'action' => 'help',
);
}
+ $flags = $module->getHelpFlags();
$help['flags'] .= Html::openElement( 'div',
array( 'class' => 'apihelp-block apihelp-flags' ) );
$msg = $context->msg( 'api-help-flags' );
);
}
$help['flags'] .= Html::openElement( 'ul' );
- foreach ( $module->getHelpFlags() as $flag ) {
+ foreach ( $flags as $flag ) {
$help['flags'] .= Html::rawElement( 'li', null,
self::wrap( $context->msg( "api-help-flag-$flag" ), "apihelp-flag-$flag" )
);
$suboptions,
$haveModules
);
- $numSubmodules = count( $submodules );
}
$module->modifyHelp( $help, $suboptions, $haveModules );