Adjust spacing, and fix the disclaimer link again so it's separated from the printabl...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 9 Oct 2004 08:41:55 +0000 (08:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 9 Oct 2004 08:41:55 +0000 (08:41 +0000)
includes/Skin.php

index ea445b7..6e4f447 100644 (file)
@@ -451,6 +451,7 @@ class Skin {
                return $s;
        }
 
+       
        function getCategoryLinks () {
                global $wgOut, $wgTitle, $wgUser, $wgParser;
                global $wgUseCategoryMagic, $wgUseCategoryBrowser, $wgLang;
@@ -544,7 +545,10 @@ class Skin {
                $action = $wgRequest->getText( 'action' );
 
                $s = $this->printableLink();
-               $s .= $this->disclaimerLink(); # may be empty
+               $disclaimer = $this->disclaimerLink(); # may be empty
+               if( $disclaimer ) {
+                       $s .= ' | ' . $disclaimer;
+               }
 
                if ( $wgOut->isArticleRelated() ) {
                        if ( $wgTitle->getNamespace() == Namespace::getImage() ) {
@@ -976,12 +980,12 @@ class Skin {
 
 
        function disclaimerLink() {
-               $disclaimers = wfMsg( 'disclaimers' );
-               if ($disclaimers == '-') {
-                   return "";
+               $disclaimers = wfMsg( 'disclaimers' );
+               if ($disclaimers == '-') {
+                       return "";
                } else {
-                   return $this->makeKnownLink( wfMsgForContent( 'disclaimerpage' ),
-                                                $disclaimers );
+                       return $this->makeKnownLink( wfMsgForContent( 'disclaimerpage' ),
+                                                    $disclaimers );
                }
        }