$title = $this->getRelevantTitle();
// User/talk link
- if ( $user->isLoggedIn() || $this->showIPinHeader() ) {
+ if ( $user->isLoggedIn() ) {
$titles[] = $user->getUserPage();
$titles[] = $user->getTalkPage();
}
}
/**
- * Returns true if the IP should be shown in the header
- * @return bool
+ * @deprecated since 1.27, feature removed
+ * @return bool Always false
*/
function showIPinHeader() {
- global $wgShowIPinHeader;
- return $wgShowIPinHeader && session_id() != '';
+ wfDeprecated( __METHOD__, '1.27' );
+ return false;
}
/**
)->numParams( $plural );
}
$newMessagesAlert = $newMessagesAlert->text();
- # Disable Squid cache
- $out->setSquidMaxage( 0 );
+ # Disable CDN cache
+ $out->setCdnMaxage( 0 );
} elseif ( count( $newtalks ) ) {
$sep = $this->msg( 'newtalkseparator' )->escaped();
$msgs = array();
}
$parts = implode( $sep, $msgs );
$newMessagesAlert = $this->msg( 'youhavenewmessagesmulti' )->rawParams( $parts )->escaped();
- $out->setSquidMaxage( 0 );
+ $out->setCdnMaxage( 0 );
}
return $newMessagesAlert;
return $notice;
}
- /**
- * Get a notice based on page's namespace
- *
- * @return string HTML fragment
- */
- function getNamespaceNotice() {
-
- $key = 'namespacenotice-' . $this->getTitle()->getNsText();
- $namespaceNotice = $this->getCachedNotice( $key );
- if ( $namespaceNotice && substr( $namespaceNotice, 0, 7 ) != '<p><' ) {
- $namespaceNotice = '<div id="namespacebanner">' . $namespaceNotice . '</div>';
- } else {
- $namespaceNotice = '';
- }
-
- return $namespaceNotice;
- }
-
/**
* Get the site notice
*