Changeset 20 in bookmarks for trunk/BookmarkApp.pm
- Timestamp:
- 05/21/13 17:55:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BookmarkApp.pm
r19 r20 69 69 my $format = $q->param('format') || 'html'; 70 70 my $tag = $q->param('tag'); 71 my @tags = $q->param('tag'); 72 # special case: handle the empty tag 73 if (@tags == 1 && $tags[0] eq '') { 74 @tags = (); 75 } 71 76 my $limit = $q->param('limit'); 72 77 my $offset = $q->param('offset'); 73 78 my @resources = $bookmarks->get_resources({ 74 tag => $tag,79 tag => \@tags, 75 80 limit => $limit, 76 81 offset => $offset, 77 82 }); 78 83 my @all_tags = $bookmarks->get_tags({ selected => $tag }); 79 my @cotags = $bookmarks->get_cotags({ tag => $tag});84 my @cotags = $bookmarks->get_cotags({ tag => \@tags }); 80 85 81 86 if ($format eq 'json') { … … 136 141 base_url => $base_url, 137 142 selected_tag => $tag, 138 tags => \@all_tags, 143 search_tags => \@tags, 144 all_tags => \@all_tags, 139 145 cotags => \@cotags, 140 146 resources => \@resources,
Note: See TracChangeset
for help on using the changeset viewer.