From e995e2ae4bb5299fa08f1dcc9f119db49226070f Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 10 Oct 2014 18:39:24 -0700 Subject: [PATCH] MovePage: Properly return errors Probably a copy-paste mistake when converting this function to use Status instead of error arrays. Change-Id: I796fc66ee637dd7d914a4182fe56992e59b90aba --- includes/MovePage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/MovePage.php b/includes/MovePage.php index 5c9490bca6..79095e9ae7 100644 --- a/includes/MovePage.php +++ b/includes/MovePage.php @@ -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 -- 2.20.1