*/
protected function getContentObject() {
- if ( $this->mPage->getID() === 0 ) {
+ if ( $this->mPage->getId() === 0 ) {
# If this is a MediaWiki:x message, then load the messages
# and return the message value for x.
if ( $this->getTitle()->getNamespace() == NS_MEDIAWIKI ) {
$this->mRevision = Revision::newFromId( $oldid );
if ( $this->mRevision !== null ) {
// Revision title doesn't match the page title given?
- if ( $this->mPage->getID() != $this->mRevision->getPage() ) {
+ if ( $this->mPage->getId() != $this->mRevision->getPage() ) {
$function = [ get_class( $this->mPage ), 'newFromID' ];
$this->mPage = call_user_func( $function, $this->mRevision->getPage() );
}
->params( $oldid )
->numParams( 1 )
->parseAsBlock();
- $this->getContext()->getOutput()->addHtml( $msg );
+ $this->getContext()->getOutput()->addHTML( $msg );
return;
}
}
}
- if ( $this->mPage->getID() === 0 || $this->getOldID() ) {
+ if ( $this->mPage->getId() === 0 || $this->getOldID() ) {
# Non-articles (special pages etc), and old revisions
return [
'index' => 'noindex',
$outputPage->addSubtitle( "<div id=\"mw-{$infomsg}\">" .
$context->msg( $infomsg, $td )
->rawParams( $userlinks )
- ->params( $revision->getID(), $tddate, $tdtime, $revision->getUserText() )
+ ->params( $revision->getId(), $tddate, $tdtime, $revision->getUserText() )
->rawParams( Linker::revComment( $revision, true, true ) )
->parse() .
"</div>"
[],
// Automatically append redirect=no to each link, since most of them are
// redirect pages themselves.
- [ 'redirect' => 'no' ],
+ $title->isRedirect() ? [ 'redirect' => 'no' ] : [],
( $forceKnown ? [ 'known', 'noclasses' ] : [] )
) . '</li>';
}
$cacheable = false;
if ( HTMLFileCache::useFileCache( $this->getContext() ) ) {
- $cacheable = $this->mPage->getID()
+ $cacheable = $this->mPage->getId()
&& !$this->mRedirectedFrom && !$this->getTitle()->isRedirect();
// Extension may have reason to disable file caching on some pages.
if ( $cacheable ) {