| Index: trunk/extensions/ContactPage/SpecialContact.php |
| — | — | @@ -10,17 +10,11 @@ |
| 11 | 11 | * @license GNU General Public Licence 2.0 or later |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | | -if( !defined( 'MEDIAWIKI' ) ) { |
| 15 | | - echo( "not a valid entry point.\n" ); |
| 16 | | - die( 1 ); |
| 17 | | -} |
| 18 | | - |
| 19 | 14 | /** |
| 20 | 15 | * Provides the contact form |
| 21 | 16 | * @ingroup SpecialPage |
| 22 | 17 | */ |
| 23 | 18 | class SpecialContact extends SpecialPage { |
| 24 | | - |
| 25 | 19 | /** |
| 26 | 20 | * Constructor |
| 27 | 21 | */ |
| — | — | @@ -29,6 +23,13 @@ |
| 30 | 24 | } |
| 31 | 25 | |
| 32 | 26 | /** |
| | 27 | + * @see SpecialPage::getDescription |
| | 28 | + */ |
| | 29 | + function getDescription() { |
| | 30 | + return wfMsg( 'contactpage' ); |
| | 31 | + } |
| | 32 | + |
| | 33 | + /** |
| 33 | 34 | * Main execution function |
| 34 | 35 | * |
| 35 | 36 | * @param $par Mixed: Parameters passed to the page |
| Index: trunk/extensions/ContactPage/ContactPage.i18n.php |
| — | — | @@ -15,7 +15,6 @@ |
| 16 | 16 | * @author Daniel Kinzler |
| 17 | 17 | */ |
| 18 | 18 | $messages['en'] = array( |
| 19 | | - 'contact' => 'Contact page', |
| 20 | 19 | 'contactpage' => 'Contact page', |
| 21 | 20 | 'contactpage-desc' => '[[Special:Contact|Contact form for visitors]]', |
| 22 | 21 | 'contactpage-title' => 'Contact', |