Index: trunk/extensions/CongressLookup/CongressLookup.php |
— | — | @@ -55,10 +55,12 @@ |
56 | 56 | $wgAPIModules['congresslookup'] = 'ApiCongressLookup'; |
57 | 57 | |
58 | 58 | $wgAutoloadClasses['SpecialCongressLookup'] = $dir . 'SpecialCongressLookup.php'; |
| 59 | +$wgAutoloadClasses['SpecialCongressFail'] = $dir . 'SpecialCongressFail.php'; |
59 | 60 | $wgAutoloadClasses['CongressLookupDB'] = $dir . 'CongressLookup.db.php'; |
60 | 61 | $wgExtensionMessagesFiles['CongressLookup'] = $dir . 'CongressLookup.i18n.php'; |
61 | 62 | $wgExtensionMessagesFiles['CongressLookupAlias'] = $dir . 'CongressLookup.alias.php'; |
62 | 63 | $wgSpecialPages['CongressLookup'] = 'SpecialCongressLookup'; |
| 64 | +$wgSpecialPages['CongressFail'] = 'SpecialCongressFail'; |
63 | 65 | |
64 | 66 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'congressLookupSchemaUpdate'; |
65 | 67 | |
Index: trunk/extensions/CongressLookup/SpecialCongressFail.php |
— | — | @@ -0,0 +1,29 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class SpecialCongressFail extends UnlistedSpecialPage { |
| 5 | + |
| 6 | + /** |
| 7 | + * Constructor. |
| 8 | + * |
| 9 | + * @param $request is the request (usually wgRequest) |
| 10 | + * @param $par is everything in the URL after Special:CongressFail |
| 11 | + */ |
| 12 | + public function __construct( $request = null, $par = null ) { |
| 13 | + parent::__construct( 'SpecialCongressFail' ); |
| 14 | + } |
| 15 | + |
| 16 | + public function execute( $subPage ) { |
| 17 | + global $wgRequest, $wgUser; |
| 18 | + |
| 19 | + $out = $this->getOutput(); |
| 20 | + |
| 21 | + $this->setHeaders(); |
| 22 | + $this->outputHeader(); |
| 23 | + |
| 24 | + $out->addHtml('<body>'); |
| 25 | + |
| 26 | + |
| 27 | + $out->addHtml('</body>'); |
| 28 | + } |
| 29 | + |
| 30 | +} |
Property changes on: trunk/extensions/CongressLookup/SpecialCongressFail.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 31 | + native |