From: Brion Vibber Date: Sun, 17 Aug 2003 07:58:23 +0000 (+0000) Subject: Use canonical URL in printable footer X-Git-Tag: 1.1.0~329 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=74e9c9ec46a369829466bbc134bf2706d70797b8;p=lhc%2Fweb%2Fwiklou.git Use canonical URL in printable footer --- diff --git a/includes/Skin.php b/includes/Skin.php index 05e38ccccd..30b114a5ab 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -277,13 +277,13 @@ class Skin { function afterContent() { global $wgUser, $wgOut, $wgServer, $HTTP_SERVER_VARS; - + global $wgTitle; + if ( $wgOut->isPrintable() ) { $s = "\n\n"; - $u = $wgServer . $HTTP_SERVER_VARS['REQUEST_URI']; - $u = preg_replace( "/[?&]printable=yes/", "", $u ); - $rf = str_replace( "$1", $u, wfMsg( "retrievedfrom" ) ); + $u = $wgServer . $wgTitle->getFullURL(); + $rf = wfMsg( "retrievedfrom", $u ); if ( $wgOut->isArticle() ) { $lm = "
" . $this->lastModified();