$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
$logid = $logEntry->insert();
$logEntry->publish( $logid );
}
-
-}
\ No newline at end of file
+}