From a40a3c65b10e0fa96e7ffdc70ab97e0e942b40b2 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 29 Aug 2011 10:47:44 +0000 Subject: [PATCH] * (bug 16428) Include permalink in printable version --- RELEASE-NOTES-1.19 | 1 + includes/Skin.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 82e30c58b1..ccdfcc4124 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -50,6 +50,7 @@ production. * Hook added to check for exempt from account creation throttle * (bug 30344) Add configuration variable for setting custom priorities when generating sitemaps +* (bug 16428) Include permalink in printable version === Bug fixes in 1.19 === * $wgUploadNavigationUrl should be used for file redlinks if diff --git a/includes/Skin.php b/includes/Skin.php index 36d56c604b..8e2a6c82b5 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -616,9 +616,15 @@ abstract class Skin extends ContextSource { return $bottomScriptText; } - /** @return string Retrievied from HTML text */ + /** + * Text with the permalink to the source page, + * usually shown on the footer of a printed page + * + * @return string HTML text with an URL + */ function printSource() { - $url = htmlspecialchars( $this->getTitle()->getFullURL() ); + $oldid = $this->getRevisionId(); + $url = htmlspecialchars( $this->getTitle()->getFullURL( 'oldid=' . $oldid ) ); return wfMsg( 'retrievedfrom', '' . $url . '' ); } -- 2.20.1