From 81fafbc9841835d89a96b431a96c6e4769e8dd54 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Fri, 5 May 2006 16:17:24 +0000 Subject: [PATCH] Three cheers for documentation! --- includes/SpecialConfirmemail.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/SpecialConfirmemail.php b/includes/SpecialConfirmemail.php index 9837c2ee82..d38eefa6ef 100644 --- a/includes/SpecialConfirmemail.php +++ b/includes/SpecialConfirmemail.php @@ -21,9 +21,13 @@ function wfSpecialConfirmemail( $par ) { class EmailConfirmation extends SpecialPage { + /** + * Main execution point + * + * @param $code Confirmation code passed to the page + */ function execute( $code ) { global $wgUser, $wgOut; - #$this->setHeaders(); if( empty( $code ) ) { if( $wgUser->isLoggedIn() ) { $this->showRequestForm(); @@ -39,6 +43,9 @@ class EmailConfirmation extends SpecialPage { } } + /** + * Show a nice form for the user to request a confirmation mail + */ function showRequestForm() { global $wgOut, $wgUser, $wgLang, $wgRequest; if( $wgRequest->wasPosted() && $wgUser->matchEditToken( $wgRequest->getText( 'token' ) ) ) { -- 2.20.1