diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-19 03:17:56 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-19 03:17:56 +0000 |
| commit | df4832bf6f73d9587de603ad8a151853a962ba84 (patch) | |
| tree | 64defee95153607ee3945b5ec7e405878969b68c /modules/media_rss/views | |
| parent | 693080669a95d9b875252f5bf9f2719c594df2f5 (diff) | |
Change Media_RSS_Controller so that it does not extend REST_Controller, since it
doesn't refer to a fixed resource or collection of resources.
Fix some minor bugs in the code so that we can actually generate a
feed. It looks pretty cool! Improved pagination links, but didn't actually test them.
Diffstat (limited to 'modules/media_rss/views')
| -rw-r--r-- | modules/media_rss/views/media.rss.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/media_rss/views/media.rss.php b/modules/media_rss/views/media.rss.php index 26f6b1fe..4fa5c163 100644 --- a/modules/media_rss/views/media.rss.php +++ b/modules/media_rss/views/media.rss.php @@ -8,10 +8,10 @@ <description><?= $item->description ?></description> <language>en-us</language> <? if (isset($prevOffset)): ?> - <atom:link rel="previous" href="<?= url::site("media_rss/$item->id?offset=\"$prevOffset\"") ?>" /> + <atom:link rel="previous" href="<?= url::site("media_rss/feed/{$item->id}?offset={$prevOffset}") ?>" /> <? endif; ?> <? if (isset($nextOffset)): ?> - <atom:link rel="next" href="href="<?= url::site("media_rss/$item->id?offset=\"$nextOffset\"") ?>"/> + <atom:link rel="next" href="href="<?= url::site("media_rss/feed/{$item->id}?offset={$nextOffset}") ?>"/> <? endif; ?> <? // @todo do we want to add an upload date to the items table? @@ -25,13 +25,13 @@ <link></link> <guid><?= $child->id ?></guid> <description type="html"><?= $child->description ?></description> - <media:thumbnail url="<?= $child->thumbnail_url() ?>" - type="<?= $child->mine_type ?>" + <media:thumbnail url="<?= $child->thumbnail_url() ?>" + type="<?= $child->mime_type ?>" height="<?= $child->thumbnail_height ?>" width="<?= $child->thumbnail_width ?>" /> <media:content url="<?= $child->resize_url() ?>" - type="<?= $child->mine_type ?>" + type="<?= $child->mime_type ?>" height="<?= $child->resize_height ?>" width="<?= $child->resize_width ?>" /> |
