From 74e9c9ec46a369829466bbc134bf2706d70797b8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 17 Aug 2003 07:58:23 +0000 Subject: [PATCH] Use canonical URL in printable footer --- includes/Skin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.20.1