http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95655
Revision: 95655
Author: raymond
Date: 2011-08-29 10:47:44 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
* (bug 16428) Include permalink in printable version
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES-1.19
trunk/phase3/includes/Skin.php
Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19 2011-08-29 09:44:02 UTC (rev 95654)
+++ trunk/phase3/RELEASE-NOTES-1.19 2011-08-29 10:47:44 UTC (rev 95655)
@@ -50,6 +50,7 @@
* 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
Modified: trunk/phase3/includes/Skin.php
===================================================================
--- trunk/phase3/includes/Skin.php 2011-08-29 09:44:02 UTC (rev 95654)
+++ trunk/phase3/includes/Skin.php 2011-08-29 10:47:44 UTC (rev 95655)
@@ -616,9 +616,15 @@
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', '<a href="' . $url . '">' . $url
. '</a>' );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs