Changeset 314 for wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/Atom.pm
- Timestamp:
- 05/25/06 17:46:22 (6 years ago)
- Files:
-
- 1 modified
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/Atom.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/Atom.pm
r312 r314 55 55 using any supplied parameters to narrow the results. 56 56 57 If the argument "also_return_timestamp" is supplied, it will return an 58 array of the feed, and the feed timestamp. Otherwise it just returns the feed. 59 57 60 =cut 58 61 sub recent_changes … … 65 68 ); 66 69 67 return $self->generate_node_list_feed($atom_timestamp, @changes); 70 my $feed = $self->generate_node_list_feed($atom_timestamp, @changes); 71 72 if($args{'also_return_timestamp'}) { 73 return ($feed,$feed_timestamp); 74 } else { 75 return $feed; 76 } 68 77 } 69 78 … … 72 81 73 82 Build an Atom Feed of all the different versions of a given node. 83 84 If the argument "also_return_timestamp" is supplied, it will return an 85 array of the feed, and the feed timestamp. Otherwise it just returns the feed. 74 86 75 87 =cut … … 81 93 my $feed_timestamp = $self->feed_timestamp( $all_versions[0] ); 82 94 83 return $self->generate_node_list_feed($feed_timestamp, @all_versions); 95 my $feed = $self->generate_node_list_feed($feed_timestamp, @all_versions); 96 97 if($args{'also_return_timestamp'}) { 98 return ($feed,$feed_timestamp); 99 } else { 100 return $feed; 101 } 84 102 } 85 103
