Ignore:
Timestamp:
Jun 15, 2005, 12:57:30 PM (17 years ago)
Author:
Earle Martin
Message:

RSS timestamp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r651 r652  
    171171        $redirect =~ s/\]\]\s*$//;
    172172        # See if this is a valid node, if not then just show the page as-is.
     173
    173174        # Avoid loops by not generating redirects to the same node or the
    174175        # previous node.
     
    620621    my $rdf_writer = OpenGuides::RDF->new( wiki   => $self->wiki,
    621622                                           config => $self->config );
    622     my $output = "Content-type: text/plain\n\n";
     623    my $output = "Content-Type: text/plain\n";
     624    $output .= "Last-Modified: " . $rdf_writer->rss_timestamp( %criteria ) . "\n\n";
    623625    $output .= $rdf_writer->make_recentchanges_rss( %criteria );
    624626    return $output if $return_output;
     
    855857sub redirect_to_node {
    856858    my ($self, $node, $redirect) = @_;
     859   
    857860    my $script_url = $self->config->script_url;
    858861    my $script_name = $self->config->script_name;
    859862    my $formatter = $self->wiki->formatter;
     863
    860864    my $id = $formatter->node_name_to_node_param( $node );
    861    
    862865    my $oldid;
    863866    $oldid = $formatter->node_name_to_node_param( $redirect ) if $redirect;
    864    
     867
    865868    my $redir_param ='';
    866869    $redir_param = "&oldid=$oldid" if $oldid;
    867    
    868     return CGI->redirect( "$script_url$script_name?id=$id$redir_param" );   
     870
     871    return CGI->redirect( "$script_url$script_name?id=$id$redir_param" );
    869872}
    870873
Note: See TracChangeset for help on using the changeset viewer.