diff --git a/ContactPage.i18n.php b/ContactPage.i18n.php
index b4ac9ff..66782bf 100644
--- a/ContactPage.i18n.php
+++ b/ContactPage.i18n.php
@@ -16,14 +16,15 @@ $messages['en'] = array(
'contactpage-desc' => '[[Special:Contact|Contact form for visitors]]',
'contactpage-title' => 'Contact',
'contactpage-pagetext' => 'Please use the form below to contact us.',
- 'contactpage-defsubject' => 'Contact Message',
+ 'contactpage-legend' => 'Send e-mail',
+ 'contactpage-defsubject' => 'Contact message',
'contactpage-subject-and-sender' => '$1 (from $2)',
- 'contactpage-fromname' => 'your name *',
- 'contactpage-fromaddress' => 'your e-mail **',
+ 'contactpage-fromname' => 'Your name: *',
+ 'contactpage-fromaddress' => 'Your e-mail: **',
'contactpage-formfootnotes' => '* optional
** optional but needed if you want an answer',
- 'contactpage-fromname-required' => 'your name',
- 'contactpage-fromaddress-required' => 'your e-mail',
+ 'contactpage-fromname-required' => 'Your name:',
+ 'contactpage-fromaddress-required' => 'Your e-mail:',
'contactpage-formfootnotes-required' => 'All fields are required.',
'contactpage-captcha' => 'To send the message, please solve the captcha ([[Special:Captcha/help|more info]])',
'contactpage-captcha-failed' => 'Captcha test failed! ([[Special:Captcha/help|more info]])',
diff --git a/SpecialContact.php b/SpecialContact.php
index 13e8bf8..c9b774a 100644
--- a/SpecialContact.php
+++ b/SpecialContact.php
@@ -6,7 +6,7 @@
* @addtogroup SpecialPage
* @author Daniel Kinzler, brightbyte.de
* @copyright © 2007 Daniel Kinzler
- * @licence GNU General Public Licence 2.0 or later
+ * @license GNU General Public Licence 2.0 or later
*/
if( !defined( 'MEDIAWIKI' ) ) {
@@ -161,58 +161,71 @@ class EmailContactForm {
$msgSuffix = $wgContactRequireAll ? '-required' : '';
- $emt = wfMsg( "emailto" );
- $rcpt = $this->target->getName();
- $emr = wfMsg( "emailsubject" );
- $emm = wfMsg( "emailmessage" );
- $ems = wfMsg( "emailsend" );
- $emc = wfMsg( "emailccme" );
- $emfn = wfMsg( "contactpage-fromname$msgSuffix" );
- $emfa = wfMsg( "contactpage-fromaddress$msgSuffix" );
- $encSubject = htmlspecialchars( $this->subject );
- $encFromName = htmlspecialchars( $this->fromname );
- $encFromAddress = htmlspecialchars( $this->fromaddress );
-
- $titleObj = SpecialPage::getTitleFor( "Contact" );
- $action = $titleObj->escapeLocalURL( "action=submit" );
+ $titleObj = SpecialPage::getTitleFor( 'Contact' );
+ $action = $titleObj->getLocalURL( 'action=submit' );
$token = $wgUser->isAnon() ? EDIT_TOKEN_SUFFIX : $wgUser->editToken(); //this kind of sucks, really...
- $token = htmlspecialchars( $token );
-
- $wgOut->addHTML( "
-