[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 <?php 2 3 if ( !defined( 'MEDIAWIKI' ) ) { 4 die( 'Not an entry point.' ); 5 } 6 7 define( 'Nuke_VERSION', '1.2.0' ); 8 9 $dir = dirname( __FILE__ ) . '/'; 10 11 $wgMessagesDirs['Nuke'] = __DIR__ . '/i18n'; 12 $wgExtensionMessagesFiles['Nuke'] = $dir . 'Nuke.i18n.php'; 13 $wgExtensionMessagesFiles['NukeAlias'] = $dir . 'Nuke.alias.php'; 14 15 $wgExtensionCredits['specialpage'][] = array( 16 'path' => __FILE__, 17 'name' => 'Nuke', 18 'descriptionmsg' => 'nuke-desc', 19 'author' => array( 'Brion Vibber', 'Jeroen De Dauw' ), 20 'url' => 'https://www.mediawiki.org/wiki/Extension:Nuke', 21 'version' => Nuke_VERSION, 22 ); 23 24 $wgGroupPermissions['sysop']['nuke'] = true; 25 $wgAvailableRights[] = 'nuke'; 26 27 $wgAutoloadClasses['SpecialNuke'] = $dir . 'Nuke_body.php'; 28 $wgAutoloadClasses['NukeHooks'] = $dir . 'Nuke.hooks.php'; 29 $wgSpecialPages['Nuke'] = 'SpecialNuke'; 30 $wgSpecialPageGroups['Nuke'] = 'pagetools'; 31 32 $wgHooks['ContributionsToolLinks'][] = 'NukeHooks::nukeContributionsLinks'; 33 34 // Resource loader modules 35 $moduleTemplate = array( 36 'localBasePath' => dirname( __FILE__ ) . '/', 37 'remoteExtPath' => 'Nuke/' 38 ); 39 40 $wgResourceModules['ext.nuke'] = $moduleTemplate + array( 41 'scripts' => array( 42 'ext.nuke.js' 43 ), 44 'messages' => array( 45 ) 46 ); 47 48 unset( $moduleTemplate );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |