Merge "Make enhanced recent changes and extended watchlist default"
[lhc/web/wiklou.git] / includes / MovePage.php
index 5c9490b..79095e9 100644 (file)
@@ -69,14 +69,14 @@ class MovePage {
                $oldid = $this->oldTitle->getArticleID();
 
                if ( strlen( $this->newTitle->getDBkey() ) < 1 ) {
-                       $errors[] = array( 'articleexists' );
+                       $status->fatal( 'articleexists' );
                }
                if (
                        ( $this->oldTitle->getDBkey() == '' ) ||
                        ( !$oldid ) ||
                        ( $this->newTitle->getDBkey() == '' )
                ) {
-                       $errors[] = array( 'badarticleerror' );
+                       $status->fatal( 'badarticleerror' );
                }
 
                // Content model checks