mediawiki-extensions-Nuke/Nuke.php

45 lines
1.1 KiB
PHP
Raw Normal View History

<?php
if( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}
2012-02-12 14:45:29 +00:00
define( 'Nuke_VERSION', '1.1.4' );
$dir = dirname(__FILE__) . '/';
$wgExtensionMessagesFiles['Nuke'] = $dir . 'Nuke.i18n.php';
$wgExtensionMessagesFiles['NukeAlias'] = $dir . 'Nuke.alias.php';
2007-07-26 10:54:37 +00:00
$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,
2007-07-26 10:54:37 +00:00
);
$wgGroupPermissions['sysop']['nuke'] = true;
$wgAvailableRights[] = 'nuke';
$wgAutoloadClasses['SpecialNuke'] = $dir . 'Nuke_body.php';
$wgSpecialPages['Nuke'] = 'SpecialNuke';
2008-09-01 17:25:05 +00:00
$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 );