mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 11:59:48 +00:00
c76b38b0b9
Change-Id: I0dda69485c36980c7425fa21c25f5926ca47049f
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
|
die( 'Not an entry point.' );
|
|
}
|
|
|
|
define( 'Nuke_VERSION', '1.1.7' );
|
|
|
|
$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 );
|