From: Rob Church Date: Fri, 5 May 2006 16:17:24 +0000 (+0000) Subject: Three cheers for documentation! X-Git-Tag: 1.31.0-rc.0~57228 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=81fafbc9841835d89a96b431a96c6e4769e8dd54;p=lhc%2Fweb%2Fwiklou.git Three cheers for documentation! --- 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' ) ) ) {