Fix the fix for [ 984629 ] "Retreived from..." printfooter division missing in Monobook
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 9 Aug 2004 00:22:43 +0000 (00:22 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 9 Aug 2004 00:22:43 +0000 (00:22 +0000)
includes/Skin.php
includes/SkinPHPTal.php

index fde23ba..2bf9840 100644 (file)
@@ -439,11 +439,15 @@ class Skin {
                $printfooter = "<div class=\"printfooter\">\n" . $this->printFooter() . "</div>\n";
                return $printfooter . $this->doAfterContent();
        }
-
-       function printFooter() {
+       
+       function printSource() {
                global $wgTitle;
                $url = htmlspecialchars( $wgTitle->getFullURL() );
-               return "<p>" . wfMsg( "retrievedfrom", "<a href=\"$url\">$url</a>" ) .
+               return wfMsg( "retrievedfrom", "<a href=\"$url\">$url</a>" );
+       }
+       
+       function printFooter() {
+               return "<p>" .  $this->printSource() .
                        "</p>\n\n<p>" . $this->pageStats() . "</p>\n";
        }
 
index 35ff06d..0763531 100644 (file)
@@ -204,7 +204,7 @@ if( defined( "MEDIAWIKI" ) ) {
                        $tpl->set( "reporttime", $out->reportTime() );
                        $tpl->set( "sitenotice", $wgSiteNotice );
 
-                       $printfooter = "<div class=\"printfooter\">\n" . $this->printFooter() . "</div>\n";
+                       $printfooter = "<div class=\"printfooter\">\n" . $this->printSource() . "</div>\n";
                        $out->mBodytext .= $printfooter ;
                        $tpl->setRef( "bodytext", $out->mBodytext );
 
@@ -603,7 +603,6 @@ if( defined( "MEDIAWIKI" ) ) {
                        $s .= wfMsg(ucfirst($this->skinname).'.js');
                        return $s;
                }
-
        }
 
        class SkinDaVinci extends SkinPHPTal {