Changeset 126


Ignore:
Timestamp:
May 11, 2003, 12:46:49 AM (19 years ago)
Author:
kake
Message:

Added make_recentchanges_rss to OpenGuides::RDF

Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MANIFEST

    r125 r126  
    3434t/11_utils.t
    3535t/21_rdf.t
     36t/21_wiki.conf
     37t/22_rss_modwiki.t
    3638t/41_pubcrawl.t
    3739wiki.cgi
  • trunk/lib/OpenGuides/RDF.pm

    r125 r126  
    209209}
    210210
     211=item B<make_recentchanges_rss>
     212
     213  print "Content-type: text/plain\n\n";
     214  print $rdf_writer->make_recentchanges_rss;
     215
     216=cut
     217
     218sub make_recentchanges_rss {
     219    my ($self, %args) = @_;
     220    my $rssmaker = CGI::Wiki::Plugin::RSS::ModWiki->new(
     221        wiki      => $self->{wiki},
     222        site_name => $self->{site_name},
     223        site_description => $self->{site_description},
     224        make_node_url => $self->{make_node_url},
     225        recent_changes_link => $self->{config}->{_}->{script_url} . uri_escape($self->{config}->{_}->{script_name}) . "?RecentChanges"
     226     );
     227
     228    print "Content-type: text/plain\n\n";
     229    if ( $args{items} ) {
     230        return $rssmaker->recent_changes( items => $args{items} );
     231    } elsif ( $args{days} ) {
     232        return $rssmaker->recent_changes( days => $args{days} );
     233    } else {
     234        return $rssmaker->recent_changes;
     235    }
     236}
     237
    211238=back
    212239
Note: See TracChangeset for help on using the changeset viewer.