mediawiki-extensions-Nuke/Nuke.php
Roan Kattouw e727fb90fb Revert r113364, r113598, r113604, r113793, r113795. Unreviewed changes in Nuke.
All of these revisions are tagged with 'gerritmigration' and will be resubmitted into Gerrit after the Gerrit switchover. See also http://lists.wikimedia.org/pipermail/wikitech-l/2012-March/059124.html
2012-03-21 19:25:49 +00:00

45 lines
1.1 KiB
PHP

<?php
if( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}
define( 'Nuke_VERSION', '1.1.4' );
$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 );