From: Raimond Spekking Date: Mon, 29 Aug 2011 10:47:44 +0000 (+0000) Subject: * (bug 16428) Include permalink in printable version X-Git-Tag: 1.31.0-rc.0~28027 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=a40a3c65b10e0fa96e7ffdc70ab97e0e942b40b2;p=lhc%2Fweb%2Fwiklou.git * (bug 16428) Include permalink in printable version --- 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 . '' ); }