Probably a copy-paste mistake when converting this function
to use Status instead of error arrays.
Change-Id: I796fc66ee637dd7d914a4182fe56992e59b90aba
$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