}
function doBeforeContent() {
- global $wgUser, $wgOut, $wgTitle, $wgSiteNotice;
+ global $wgUser, $wgOut, $wgTitle;
$s = "\n<div id='content'>\n<div id='topbar'>";
$s .= $this->logoText( "right" );
$s .= $this->pageSubtitle() . "\n";
$s .= $this->topLinks() . "\n<br />";
- if( $wgSiteNotice ) {
- $s .= "\n<div id='siteNotice'>$wgSiteNotice</div>\n";
+
+ $notice = wfGetSiteNotice();
+ if( $notice ) {
+ $s .= "\n<div id='siteNotice'>$notice</div>\n";
}
$s .= $this->pageTitleLinks();
$s .= $sep . $this->editThisPage()
. $sep . $this->historyLink();
}
- if ( 0 == $wgUser->getID() ) {
+ if ( $wgUser->isAnon() ) {
$s .= $sep . $this->specialLink( "userlogin" );
} else {
$s .= $sep . $this->specialLink( "userlogout" );
}
function doAfterContent() {
- global $wgUser, $wgOut;
-
$s = "\n</div><br clear='all' />\n";
$s .= "\n<div id='footer'><hr />";