Use == for comparison, not = !
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 14 Nov 2007 16:03:39 +0000 (16:03 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 14 Nov 2007 16:03:39 +0000 (16:03 +0000)
includes/EditPage.php

index 15a56a9..3526061 100644 (file)
@@ -2127,7 +2127,7 @@ END
                $resultDetails = false;
                $value = $this->internalAttemptSave( $resultDetails );
                
-               if( $value == self::AS_SUCCESS_UPDATE || $value = self::AS_SUCCESS_NEW_ARTICLE ) {
+               if( $value == self::AS_SUCCESS_UPDATE || $value == self::AS_SUCCESS_NEW_ARTICLE ) {
                        $this->didSave = true;
                }