- Timestamp:
- 10/20/16 21:35:13 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Bookmarks.pm
r106 r127 227 227 sub add { 228 228 my $self = shift; 229 my $ bookmark= shift;229 my $params = shift; 230 230 231 231 #TODO: accept a pre-made Bookmark object in addition to a hash 232 my $uri = $ bookmark->{uri};233 my $title = $ bookmark->{title};234 my $ctime = $ bookmark->{ctime} || time;235 my $mtime = $ bookmark->{mtime} || $ctime;236 my $id = $ bookmark->{id};232 my $uri = $params->{uri}; 233 my $title = $params->{title}; 234 my $ctime = $params->{ctime} || time; 235 my $mtime = $params->{mtime} || $ctime; 236 my $id = $params->{id}; 237 237 238 238 # create an entry for the resource … … 271 271 } 272 272 273 my $changed_tags = $self->_update_tags($uri, $ bookmark->{tags});273 my $changed_tags = $self->_update_tags($uri, $params->{tags}); 274 274 275 275 if ($bookmark_exists && $changed_tags) {
Note: See TracChangeset
for help on using the changeset viewer.