Fix typo
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 29 Oct 2008 04:41:44 +0000 (04:41 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 29 Oct 2008 04:41:44 +0000 (04:41 +0000)
includes/Article.php

index 33c74aa..0e6d123 100644 (file)
@@ -2365,7 +2365,7 @@ class Article {
                                $wgOut->returnToMain( false );
                                wfRunHooks('ArticleDeleteComplete', array(&$this, &$wgUser, $reason, $id));
                        } else {
-                               if ($error = '')
+                               if ($error == '')
                                        $wgOut->showFatalError( wfMsg( 'cannotdelete' ) );
                                else
                                        $wgOut->showFatalError( $error );