Changeset 314 for wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm
- Timestamp:
- 05/25/06 17:46:22 (6 years ago)
- Files:
-
- 1 modified
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm
r313 r314 56 56 using any supplied parameters to narrow the results. 57 57 58 If the argument "also_return_timestamp" is supplied, it will return an 59 array of the feed, and the feed timestamp. Otherwise it just returns the feed. 60 58 61 =cut 59 62 sub recent_changes … … 66 69 ); 67 70 68 return $self->generate_node_list_feed($feed_timestamp, @changes); 71 my $feed = $self->generate_node_list_feed($feed_timestamp, @changes); 72 73 if($args{'also_return_timestamp'}) { 74 return ($feed,$feed_timestamp); 75 } else { 76 return $feed; 77 } 69 78 } 70 79 … … 73 82 74 83 Build an RSS Feed of all the different versions of a given node. 84 85 If the argument "also_return_timestamp" is supplied, it will return an 86 array of the feed, and the feed timestamp. Otherwise it just returns the feed. 75 87 76 88 =cut … … 82 94 my $feed_timestamp = $self->feed_timestamp( $all_versions[0] ); 83 95 84 return $self->generate_node_list_feed($feed_timestamp, @all_versions); 96 my $feed = $self->generate_node_list_feed($feed_timestamp, @all_versions); 97 98 if($args{'also_return_timestamp'}) { 99 return ($feed,$feed_timestamp); 100 } else { 101 return $feed; 102 } 85 103 } 86 104 … … 265 283 } 266 284 } 267 # Compatibility method 285 286 # Compatibility method - use feed_timestamp with a node instead 268 287 sub rss_timestamp { 269 return feed_timestamp(@_); 288 my ($self, %args) = @_; 289 290 warn("Old style method used - please convert to calling feed_timestamp with a node!"); 291 my $feed_timestamp = $self->feed_timestamp( 292 $self->fetch_newest_for_recently_changed(%args) 293 ); 294 return $feed_timestamp; 270 295 } 271 296
