$this->mPage = $this->mTitle->getArticleID();
} elseif ( $this->mTitle->getArticleID() !== $this->mPage ) {
// got different page IDs, something is wrong.
$this->mPage = $this->mTitle->getArticleID();
} elseif ( $this->mTitle->getArticleID() !== $this->mPage ) {
// got different page IDs, something is wrong.
- wfWarn( "Page ID " . $this->mPage . " mismatches the ID "
+ throw new MWException( "Page ID " . $this->mPage . " mismatches the ID "
. $this->mTitle->getArticleID() . " provided by the Title object." );
}
}
. $this->mTitle->getArticleID() . " provided by the Title object." );
}
}