Index: trunk/extensions/PageTriage/PageTriage.php |
— | — | @@ -0,0 +1,28 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +# Alert the user that this is not a valid entry point to MediaWiki if they try to access the special pages file directly. |
| 5 | +if ( !defined( 'MEDIAWIKI' ) ) { |
| 6 | + echo <<<EOT |
| 7 | +To install this extension, put the following line in LocalSettings.php: |
| 8 | +require_once( "\$IP/extensions/PageTriage/PageTriage.php" ); |
| 9 | +EOT; |
| 10 | + exit( 1 ); |
| 11 | +} |
| 12 | + |
| 13 | +// Extension credits that will show up on Special:Version |
| 14 | +$wgExtensionCredits['specialpage'][] = array( |
| 15 | + 'path' => __FILE__, |
| 16 | + 'name' => 'PageTriage', |
| 17 | + 'version' => '0.1', |
| 18 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:PageTriage', |
| 19 | + 'author' => '', |
| 20 | + 'descriptionmsg' => 'pagetriage-desc', |
| 21 | +); |
| 22 | + |
| 23 | +$dir = dirname( __FILE__ ) . '/'; |
| 24 | + |
| 25 | +$wgAutoloadClasses['SpecialPageTriage'] = $dir . 'SpecialPageTriage.php'; |
| 26 | +$wgExtensionMessagesFiles['PageTriage'] = $dir . 'PageTriage.i18n.php'; |
| 27 | +$wgExtensionAliasesFiles['PageTriage'] = $dir . 'PageTriage.alias.php'; |
| 28 | +$wgSpecialPages['PageTriage'] = 'SpecialPageTriage'; |
| 29 | +$wgSpecialPageGroups['PageTriage'] = 'changes'; |