Removed useless $out variable from Skin::getCopyright()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 28 Jul 2011 20:42:56 +0000 (20:42 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 28 Jul 2011 20:42:56 +0000 (20:42 +0000)
includes/Skin.php

index 0871f2f..dfdb210 100644 (file)
@@ -741,8 +741,6 @@ abstract class Skin extends ContextSource {
                        $msg = 'copyright';
                }
 
-               $out = '';
-
                if ( $wgRightsPage ) {
                        $title = Title::newFromText( $wgRightsPage );
                        $link = Linker::linkKnown( $title, $wgRightsText );
@@ -752,7 +750,7 @@ abstract class Skin extends ContextSource {
                        $link = $wgRightsText;
                } else {
                        # Give up now
-                       return $out;
+                       return '';
                }
 
                // Allow for site and per-namespace customization of copyright notice.
@@ -761,12 +759,10 @@ abstract class Skin extends ContextSource {
                wfRunHooks( 'SkinCopyrightFooter', array( $this->getTitle(), $type, &$msg, &$link, &$forContent ) );
 
                if ( $forContent ) {
-                       $out .= wfMsgForContent( $msg, $link );
+                       return wfMsgForContent( $msg, $link );
                } else {
-                       $out .= wfMsg( $msg, $link );
+                       return wfMsg( $msg, $link );
                }
-
-               return $out;
        }
 
        function getCopyrightIcon() {