summaryrefslogtreecommitdiff
path: root/includes/SpecialConfirmemail.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SpecialConfirmemail.php')
-rw-r--r--includes/SpecialConfirmemail.php23
1 files changed, 11 insertions, 12 deletions
diff --git a/includes/SpecialConfirmemail.php b/includes/SpecialConfirmemail.php
index 58e55899..ba419f25 100644
--- a/includes/SpecialConfirmemail.php
+++ b/includes/SpecialConfirmemail.php
@@ -1,23 +1,21 @@
<?php
/**
- * Main execution point
- *
- * @param $par Parameters passed to the page
- */
-function wfSpecialConfirmemail( $par ) {
- $form = new EmailConfirmation();
- $form->execute( $par );
-}
-
-/**
* Special page allows users to request email confirmation message, and handles
* processing of the confirmation code when the link in the email is followed
*
* @addtogroup SpecialPage
+ * @author Brion Vibber
* @author Rob Church <robchur@gmail.com>
*/
-class EmailConfirmation extends SpecialPage {
+class EmailConfirmation extends UnlistedSpecialPage {
+
+ /**
+ * Constructor
+ */
+ public function __construct() {
+ parent::__construct( 'Confirmemail' );
+ }
/**
* Main execution point
@@ -26,6 +24,7 @@ class EmailConfirmation extends SpecialPage {
*/
function execute( $code ) {
global $wgUser, $wgOut;
+ $this->setHeaders();
if( empty( $code ) ) {
if( $wgUser->isLoggedIn() ) {
if( User::isValidEmailAddr( $wgUser->getEmail() ) ) {
@@ -102,4 +101,4 @@ class EmailConfirmation extends SpecialPage {
}
-?>
+