2005-09-18 09:28:56 +00:00
|
|
|
<?php
|
|
|
|
|
2012-08-16 13:19:22 +00:00
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
2005-09-18 09:28:56 +00:00
|
|
|
die( 'Not an entry point.' );
|
2011-02-14 20:21:02 +00:00
|
|
|
}
|
|
|
|
|
2014-03-27 10:55:55 +00:00
|
|
|
define( 'Nuke_VERSION', '1.2.0' );
|
2005-09-18 09:28:56 +00:00
|
|
|
|
2014-11-08 14:39:13 +00:00
|
|
|
$dir = __DIR__ . '/';
|
2008-05-09 18:53:09 +00:00
|
|
|
|
2014-03-27 10:55:55 +00:00
|
|
|
$wgMessagesDirs['Nuke'] = __DIR__ . '/i18n';
|
2010-04-18 11:53:49 +00:00
|
|
|
$wgExtensionMessagesFiles['Nuke'] = $dir . 'Nuke.i18n.php';
|
2011-12-25 23:09:26 +00:00
|
|
|
$wgExtensionMessagesFiles['NukeAlias'] = $dir . 'Nuke.alias.php';
|
2005-09-18 09:28:56 +00:00
|
|
|
|
2007-07-26 10:54:37 +00:00
|
|
|
$wgExtensionCredits['specialpage'][] = array(
|
2009-04-26 05:22:33 +00:00
|
|
|
'path' => __FILE__,
|
2008-02-14 13:50:42 +00:00
|
|
|
'name' => 'Nuke',
|
|
|
|
'descriptionmsg' => 'nuke-desc',
|
2012-03-21 19:25:49 +00:00
|
|
|
'author' => array( 'Brion Vibber', 'Jeroen De Dauw' ),
|
2011-12-13 23:49:33 +00:00
|
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:Nuke',
|
2011-02-14 20:21:02 +00:00
|
|
|
'version' => Nuke_VERSION,
|
2007-07-26 10:54:37 +00:00
|
|
|
);
|
|
|
|
|
2005-09-18 09:28:56 +00:00
|
|
|
$wgGroupPermissions['sysop']['nuke'] = true;
|
|
|
|
$wgAvailableRights[] = 'nuke';
|
|
|
|
|
2010-04-18 11:53:49 +00:00
|
|
|
$wgAutoloadClasses['SpecialNuke'] = $dir . 'Nuke_body.php';
|
2014-02-01 04:34:44 +00:00
|
|
|
$wgAutoloadClasses['NukeHooks'] = $dir . 'Nuke.hooks.php';
|
2008-05-09 18:53:09 +00:00
|
|
|
$wgSpecialPages['Nuke'] = 'SpecialNuke';
|
2008-09-01 17:25:05 +00:00
|
|
|
$wgSpecialPageGroups['Nuke'] = 'pagetools';
|
2011-11-10 17:40:32 +00:00
|
|
|
|
2014-02-01 04:34:44 +00:00
|
|
|
$wgHooks['ContributionsToolLinks'][] = 'NukeHooks::nukeContributionsLinks';
|
|
|
|
|
2011-11-10 17:40:32 +00:00
|
|
|
// Resource loader modules
|
|
|
|
$moduleTemplate = array(
|
2014-11-08 14:39:13 +00:00
|
|
|
'localBasePath' => __DIR__ . '/',
|
2011-11-10 17:40:32 +00:00
|
|
|
'remoteExtPath' => 'Nuke/'
|
|
|
|
);
|
|
|
|
|
|
|
|
$wgResourceModules['ext.nuke'] = $moduleTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'ext.nuke.js'
|
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
unset( $moduleTemplate );
|