Author: mike
Description:
Add following lines in MultiBoilerplate.php and it will show up in the Admin links (extension). My use of wfMsg( 'boilerplates' ) is a quick hack, and it should be a string on it own.
$wgHooks['AdminLinks'][] = 'MultiBoilerplateAddToAdminLinks';
function MultiBoilerplateAddToAdminLinks( &$admin_links_tree ) {
global $wgMultiBoilerplateOptions; if ( !$wgMultiBoilerplateOptions) { $general_section = $admin_links_tree->getSection( wfMsg( 'adminlinks_general' ) ); $extensions_row = $general_section->getRow( 'extensions' ); if ( is_null( $extensions_row ) ) { $extensions_row = new ALRow( 'extensions' ); $general_section->addRow( $extensions_row ); } $extensions_row->addItem( ALItem::newFromEditLink( 'Multiboilerplate', wfMsg( 'boilerplates' ) ) ); } return true;
}
Version: unspecified
Severity: enhancement