Index: trunk/phase3/includes/Skin.php |
— | — | @@ -741,8 +741,6 @@ |
742 | 742 | $msg = 'copyright'; |
743 | 743 | } |
744 | 744 | |
745 | | - $out = ''; |
746 | | - |
747 | 745 | if ( $wgRightsPage ) { |
748 | 746 | $title = Title::newFromText( $wgRightsPage ); |
749 | 747 | $link = Linker::linkKnown( $title, $wgRightsText ); |
— | — | @@ -752,7 +750,7 @@ |
753 | 751 | $link = $wgRightsText; |
754 | 752 | } else { |
755 | 753 | # Give up now |
756 | | - return $out; |
| 754 | + return ''; |
757 | 755 | } |
758 | 756 | |
759 | 757 | // Allow for site and per-namespace customization of copyright notice. |
— | — | @@ -761,12 +759,10 @@ |
762 | 760 | wfRunHooks( 'SkinCopyrightFooter', array( $this->getTitle(), $type, &$msg, &$link, &$forContent ) ); |
763 | 761 | |
764 | 762 | if ( $forContent ) { |
765 | | - $out .= wfMsgForContent( $msg, $link ); |
| 763 | + return wfMsgForContent( $msg, $link ); |
766 | 764 | } else { |
767 | | - $out .= wfMsg( $msg, $link ); |
| 765 | + return wfMsg( $msg, $link ); |
768 | 766 | } |
769 | | - |
770 | | - return $out; |
771 | 767 | } |
772 | 768 | |
773 | 769 | function getCopyrightIcon() { |