* Removed '@todo document', it has been documented.
[lhc/web/wiklou.git] / skins / Nostalgia.php
index d29aaf8..4bf4bf6 100644 (file)
@@ -29,7 +29,7 @@ class SkinNostalgia extends Skin {
        }
 
        function doBeforeContent() {
-               global $wgUser, $wgOut, $wgTitle, $wgSiteNotice;
+               global $wgUser, $wgOut, $wgTitle;
 
                $s = "\n<div id='content'>\n<div id='topbar'>";
                $s .= $this->logoText( "right" );
@@ -38,8 +38,10 @@ class SkinNostalgia extends Skin {
                $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();
 
@@ -66,7 +68,7 @@ class SkinNostalgia extends Skin {
                        $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" );
@@ -77,8 +79,6 @@ class SkinNostalgia extends Skin {
        }
 
        function doAfterContent() {
-               global $wgUser, $wgOut;
-
                $s = "\n</div><br clear='all' />\n";
 
                $s .= "\n<div id='footer'><hr />";