Changeset 5682


Ignore:
Timestamp:
11/30/09 05:08:19 (2 years ago)
Author:
GeorgeClark
Message:

Item2084: Initial support for revisions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GenPDFAddOn/lib/Foswiki/Contrib/GenPDF.pm

    r5681 r5682  
    141141 
    142142sub _getRenderedView { 
    143     my ( $webName, $topic ) = @_; 
    144  
    145     my $text = Foswiki::Func::readTopicText( $webName, $topic ); 
     143    my ( $webName, $topic, $rev) = @_; 
     144 
     145    my $text = Foswiki::Func::readTopicText( $webName, $topic, $rev ); 
    146146 
    147147    # FIXME - must be a better way? 
     
    10171017    my $webName = $session->{webName}; 
    10181018    my $topic   = $session->{topicName}; 
     1019    my $rev     = $query->param('rev'); 
    10191020 
    10201021    open( STDERR, ">>$Foswiki::cfg{DataDir}/error.log" ) 
     
    10961097        _writeDebug("preparing $topic");    # DEBUG 
    10971098                                            # Get ready to display HTML topic 
    1098         my $htmlData = _getRenderedView( $webName, $topic ); 
     1099        my $htmlData = _getRenderedView( $webName, $topic, $rev ); 
    10991100 
    11001101# Fix topic text (i.e. correct any problems with the HTML that htmldoc might not like 
Note: See TracChangeset for help on using the changeset viewer.