diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-15 03:38:57 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-15 04:26:07 +0800 |
commit | 83d1b15c1e9ca89cc55879a5582cd9abafc5a792 (patch) | |
tree | 6f19eb5e1a3471d0d9b93d5b61668ce770eafe03 /modules/tag | |
parent | 6007843c4acf3a83580989351de73ae64a2e61ed (diff) |
Don't use stdClass to return the feed data. Just use an array.
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/tag')
-rw-r--r-- | modules/tag/helpers/tag_rss.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/tag/helpers/tag_rss.php b/modules/tag/helpers/tag_rss.php index 7846edf6..3d6399ca 100644 --- a/modules/tag/helpers/tag_rss.php +++ b/modules/tag/helpers/tag_rss.php @@ -31,12 +31,11 @@ class tag_rss_Core { return Kohana::show_404(); } - $feed = new stdClass(); - $feed->data["children"] = $tag->items($limit, $offset, "photo"); - $feed->max_pages = ceil($tag->count / $limit); - $feed->data["title"] = $tag->name; - $feed->data["link"] = url::abs_site("tags/{$tag->id}"); - $feed->data["description"] = t("Photos related to %tag_name", array("tag_name" => $tag->name)); + $feed["children"] = $tag->items($limit, $offset, "photo"); + $feed["max_pages"] = ceil($tag->count / $limit); + $feed["title"] = $tag->name; + $feed["link"] = url::abs_site("tags/{$tag->id}"); + $feed["description"] = t("Photos related to %tag_name", array("tag_name" => $tag->name)); return $feed; } |