diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2010-02-02 13:41:50 -0800 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-02 13:41:50 -0800 |
| commit | 31aaf7555f51dd80cf1e97fd3c20a1c245cbf61b (patch) | |
| tree | 594ca1cebbe5b8b58b4c50cb3c88487574dba712 /modules/tag/helpers | |
| parent | be5f38adea89bdb95be359aea3d97615b6b530a3 (diff) | |
| parent | 3c3671cff25f28e21a702b1f665a6baa282d045f (diff) | |
Merge commit 'upstream/master'
Diffstat (limited to 'modules/tag/helpers')
| -rw-r--r-- | modules/tag/helpers/tag_rss.php | 2 | ||||
| -rw-r--r-- | modules/tag/helpers/tags_rest.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/tag/helpers/tag_rss.php b/modules/tag/helpers/tag_rss.php index f09a4530..5d42caab 100644 --- a/modules/tag/helpers/tag_rss.php +++ b/modules/tag/helpers/tag_rss.php @@ -34,6 +34,8 @@ class tag_rss_Core { if (!$tag->loaded()) { throw new Kohana_404_Exception(); } + + $feed = new stdClass(); $feed->children = $tag->items($limit, $offset, "photo"); $feed->max_pages = ceil($tag->count / $limit); $feed->title = $tag->name; diff --git a/modules/tag/helpers/tags_rest.php b/modules/tag/helpers/tags_rest.php index ac0eb81d..f28be7b5 100644 --- a/modules/tag/helpers/tags_rest.php +++ b/modules/tag/helpers/tags_rest.php @@ -35,7 +35,6 @@ class tags_rest_Core { $query->or_where("edit_{$group->id}", "=", access::ALLOW); } $has_any_edit_perm = $query->close()->count_records(); - if (!$has_any_edit_perm) { access::forbidden(); } |
