Fixing a variable name, and a PHP warning.
authorRotem Liss <rotem@users.mediawiki.org>
Tue, 30 Oct 2007 16:00:35 +0000 (16:00 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Tue, 30 Oct 2007 16:00:35 +0000 (16:00 +0000)
includes/EditPage.php

index a8744eb..b3170da 100644 (file)
@@ -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() );