$action = $this->getRequest()->getVal( 'action', 'view' );
if ( $this->getTitle()->userCan( 'deletedhistory', $this->getUser() ) &&
- ( $this->getTitle()->getArticleID() == 0 || $action == 'history' ) ) {
+ ( !$this->getTitle()->exists() || $action == 'history' ) ) {
$n = $this->getTitle()->isDeleted();
if ( $n ) {
return array(
'href' => $title->getLocalURL( $urlaction ),
- 'exists' => $title->getArticleID() != 0,
+ 'exists' => $title->isKnown(),
);
}