From: Aaron Schulz Date: Sat, 24 Jan 2009 05:37:43 +0000 (+0000) Subject: code style tweaks X-Git-Tag: 1.31.0-rc.0~43287 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=3e668950134f2f84112ebd4a5c59f8e8051efcd3;p=lhc%2Fweb%2Fwiklou.git code style tweaks --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 123e927569..d1c41d8efa 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -881,7 +881,7 @@ class EditPage { $isComment = ( $this->section == 'new' ); $this->mArticle->insertNewArticle( $this->textbox1, $this->summary, - $this->minoredit, $this->watchthis, false, $isComment, $bot); + $this->minoredit, $this->watchthis, false, $isComment, $bot ); wfProfileOut( $fname ); return self::AS_SUCCESS_NEW_ARTICLE; @@ -2405,7 +2405,9 @@ END global $wgUser, $wgOut, $wgTitle, $wgRequest; $resultDetails = false; - $value = $this->internalAttemptSave( $resultDetails, $wgUser->isAllowed('bot') && $wgRequest->getBool('bot', true) ); + # Allow bots to exempt some edits from bot flagging + $bot = $wgUser->isAllowed('bot') && $wgRequest->getBool('bot',true); + $value = $this->internalAttemptSave( $resultDetails, $bot ); if ( $value == self::AS_SUCCESS_UPDATE || $value == self::AS_SUCCESS_NEW_ARTICLE ) { $this->didSave = true;