| Index: trunk/phase3/RELEASE-NOTES-1.19 |
| — | — | @@ -50,6 +50,7 @@ |
| 51 | 51 | * Hook added to check for exempt from account creation throttle |
| 52 | 52 | * (bug 30344) Add configuration variable for setting custom priorities when |
| 53 | 53 | generating sitemaps |
| | 54 | +* (bug 16428) Include permalink in printable version |
| 54 | 55 | |
| 55 | 56 | === Bug fixes in 1.19 === |
| 56 | 57 | * $wgUploadNavigationUrl should be used for file redlinks if |
| Index: trunk/phase3/includes/Skin.php |
| — | — | @@ -616,9 +616,15 @@ |
| 617 | 617 | return $bottomScriptText; |
| 618 | 618 | } |
| 619 | 619 | |
| 620 | | - /** @return string Retrievied from HTML text */ |
| | 620 | + /** |
| | 621 | + * Text with the permalink to the source page, |
| | 622 | + * usually shown on the footer of a printed page |
| | 623 | + * |
| | 624 | + * @return string HTML text with an URL |
| | 625 | + */ |
| 621 | 626 | function printSource() { |
| 622 | | - $url = htmlspecialchars( $this->getTitle()->getFullURL() ); |
| | 627 | + $oldid = $this->getRevisionId(); |
| | 628 | + $url = htmlspecialchars( $this->getTitle()->getFullURL( 'oldid=' . $oldid ) ); |
| 623 | 629 | return wfMsg( 'retrievedfrom', '<a href="' . $url . '">' . $url . '</a>' ); |
| 624 | 630 | } |
| 625 | 631 | |