From 1178d032a6da2231a612019b28aee68ce23a8c97 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Tue, 30 Oct 2007 16:00:35 +0000 Subject: [PATCH] Fixing a variable name, and a PHP warning. --- includes/EditPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() ); -- 2.20.1