wfRunHooks( 'TitleMove', array( $this, $nt, $wgUser ) );
$mp = new MovePage( $this, $nt );
- return $mp->move( $wgUser, $reason, $createRedirect );
+ $status = $mp->move( $wgUser, $reason, $createRedirect );
+ if ( $status->isOK() ) {
+ return true;
+ } else {
+ return $status->getErrorsArray();
+ }
}
/**
* @return bool
*/
public function exists() {
- return $this->getArticleID() != 0;
+ $exists = $this->getArticleID() != 0;
+ wfRunHooks( 'TitleExists', array( $this, &$exists ) );
+ return $exists;
}
/**