From: Rotem Liss Date: Tue, 30 Oct 2007 16:00:35 +0000 (+0000) Subject: Fixing a variable name, and a PHP warning. X-Git-Tag: 1.31.0-rc.0~51049 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=1178d032a6da2231a612019b28aee68ce23a8c97;p=lhc%2Fweb%2Fwiklou.git Fixing a variable name, and a PHP warning. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index a8744eb88f..b3170da5fe 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -666,7 +666,7 @@ class EditPage { # Check for spam $matches = array(); if ( $wgSpamRegex && preg_match( $wgSpamRegex, $this->textbox1, $matches ) ) { - $resultDetails['spam'] = $matches[0]; + $result['spam'] = $matches[0]; wfProfileOut( "$fname-checks" ); wfProfileOut( $fname ); return self::AS_SPAM_ERROR; @@ -2095,7 +2095,7 @@ END global $wgUser, $wgOut; $resultDetails = false; - $value = $this->internalAttemptSave( &$resultDetails ); + $value = $this->internalAttemptSave( $resultDetails ); switch ($value) { case self::AS_HOOK_ERROR_EXPECTED: @@ -2137,7 +2137,7 @@ END case self::AS_NO_CREATE_PERMISSION; $this->noCreatePermission(); - return; + return; case self::AS_BLANK_ARTICLE: $wgOut->redirect( $this->mTitle->getFullURL() );