mediawiki-extensions-Nuke/Nuke.php
Siebrand Mazeland 215854daf4 Nuke extension maintenance.
* Slightly improved an i18n issue in SpecialNuke::listForm()
* Use Message class where possible.
* Bumped version two points (hadn't been done for 1.1.5).
* Updated documentation for a method.
* Fix spacing in i18n file.
* Update .gitignore.

Change-Id: Ibec4d5279d58f08c84f64fa544a5348f6128a15d
2012-08-16 15:38:16 +02:00

45 lines
1.1 KiB
PHP

<?php
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}
define( 'Nuke_VERSION', '1.1.6' );
$dir = dirname( __FILE__ ) . '/';
$wgExtensionMessagesFiles['Nuke'] = $dir . 'Nuke.i18n.php';
$wgExtensionMessagesFiles['NukeAlias'] = $dir . 'Nuke.alias.php';
$wgExtensionCredits['specialpage'][] = array(
'path' => __FILE__,
'name' => 'Nuke',
'descriptionmsg' => 'nuke-desc',
'author' => array( 'Brion Vibber', 'Jeroen De Dauw' ),
'url' => 'https://www.mediawiki.org/wiki/Extension:Nuke',
'version' => Nuke_VERSION,
);
$wgGroupPermissions['sysop']['nuke'] = true;
$wgAvailableRights[] = 'nuke';
$wgAutoloadClasses['SpecialNuke'] = $dir . 'Nuke_body.php';
$wgSpecialPages['Nuke'] = 'SpecialNuke';
$wgSpecialPageGroups['Nuke'] = 'pagetools';
// Resource loader modules
$moduleTemplate = array(
'localBasePath' => dirname( __FILE__ ) . '/',
'remoteExtPath' => 'Nuke/'
);
$wgResourceModules['ext.nuke'] = $moduleTemplate + array(
'scripts' => array(
'ext.nuke.js'
),
'messages' => array(
)
);
unset( $moduleTemplate );