From a87912859978bb358e1e2caae7c5192c3a95c1a5 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 2 May 2006 17:06:24 +0000 Subject: [PATCH] * Anal-retentive cleanup of a few bits * Document a few odd functions --- includes/EditPage.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 4fa5818639..90bc1351e8 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1302,7 +1302,7 @@ END } /** - * @todo document + * Call the stock "user is blocked" page */ function blockedIPpage() { global $wgOut; @@ -1320,7 +1320,7 @@ END $loginLink = $skin->makeKnownLinkObj( $loginTitle, wfMsgHtml( 'loginreqlink' ), 'returnto=' . $this->mTitle->getPrefixedUrl() ); $wgOut->setPageTitle( wfMsg( 'whitelistedittitle' ) ); - $wgOut->setRobotpolicy( 'noindex,nofollow' ); + $wgOut->setRobotPolicy( 'noindex,nofollow' ); $wgOut->setArticleRelated( false ); $wgOut->addHtml( wfMsgWikiHtml( 'whitelistedittext', $loginLink ) ); @@ -1333,30 +1333,32 @@ END * allowed to edit. */ function userNotConfirmedPage() { - global $wgOut; $wgOut->setPageTitle( wfMsg( 'confirmedittitle' ) ); - $wgOut->setRobotpolicy( 'noindex,nofollow' ); + $wgOut->setRobotPolicy( 'noindex,nofollow' ); $wgOut->setArticleRelated( false ); + $wgOut->addWikiText( wfMsg( 'confirmedittext' ) ); $wgOut->returnToMain( false ); } /** - * @todo document + * Produce the stock "your edit contains spam" page + * + * @param $match Text which triggered one or more filters */ - function spamPage ( $match = false ) - { + function spamPage( $match = false ) { global $wgOut; + $wgOut->setPageTitle( wfMsg( 'spamprotectiontitle' ) ); - $wgOut->setRobotpolicy( 'noindex,nofollow' ); + $wgOut->setRobotPolicy( 'noindex,nofollow' ); $wgOut->setArticleRelated( false ); $wgOut->addWikiText( wfMsg( 'spamprotectiontext' ) ); - if ( $match ) { + if ( $match ) $wgOut->addWikiText( wfMsg( 'spamprotectionmatch', "{$match}" ) ); - } + $wgOut->returnToMain( false ); } -- 2.20.1