mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 03:35:39 +00:00
48af2dada4
If I have to lock you two in a room, I will. Change-Id: I1bb2907db948b8e26cfa2532a38b1e25f2dda1fc
48 lines
1.2 KiB
PHP
Executable file
48 lines
1.2 KiB
PHP
Executable file
<?php
|
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
|
die( 'Not an entry point.' );
|
|
}
|
|
|
|
define( 'Nuke_VERSION', '1.1.8' );
|
|
|
|
$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';
|
|
$wgAutoloadClasses['NukeHooks'] = $dir . 'Nuke.hooks.php';
|
|
$wgSpecialPages['Nuke'] = 'SpecialNuke';
|
|
$wgSpecialPageGroups['Nuke'] = 'pagetools';
|
|
|
|
$wgHooks['ContributionsToolLinks'][] = 'NukeHooks::nukeContributionsLinks';
|
|
|
|
// Resource loader modules
|
|
$moduleTemplate = array(
|
|
'localBasePath' => dirname( __FILE__ ) . '/',
|
|
'remoteExtPath' => 'Nuke/'
|
|
);
|
|
|
|
$wgResourceModules['ext.nuke'] = $moduleTemplate + array(
|
|
'scripts' => array(
|
|
'ext.nuke.js'
|
|
),
|
|
'messages' => array(
|
|
)
|
|
);
|
|
|
|
unset( $moduleTemplate );
|