diff options
author | cash <cash.costello@gmail.com> | 2011-10-29 15:07:43 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-29 15:07:43 -0400 |
commit | 4106d50727d5a56ec1442b16e182fbd9acc6b167 (patch) | |
tree | 461b4ed1050214bdd681b7368ba56d5cb5a4092e /views/rss/object/default.php | |
parent | 508000e9e3a49c0f659279ba916bde4a771ed777 (diff) | |
download | elgg-4106d50727d5a56ec1442b16e182fbd9acc6b167.tar.gz elgg-4106d50727d5a56ec1442b16e182fbd9acc6b167.tar.bz2 |
Fixes #3201 updates rss view type for core Elgg
Diffstat (limited to 'views/rss/object/default.php')
-rw-r--r-- | views/rss/object/default.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/views/rss/object/default.php b/views/rss/object/default.php index 29e5d4591..b5d269ac7 100644 --- a/views/rss/object/default.php +++ b/views/rss/object/default.php @@ -1,6 +1,6 @@ <?php /** - * Elgg default object view + * RSS object view * * @package Elgg * @subpackage Core @@ -8,18 +8,15 @@ $title = $vars['entity']->title; if (empty($title)) { - $subtitle = strip_tags($vars['entity']->description); - $title = substr($subtitle, 0, 32); - if (strlen($subtitle) > 32) { - $title .= ' ...'; - } + $title = strip_tags($vars['entity']->description); + $title = elgg_get_excerpt($title, 32); } -$permalink = htmlspecialchars($vars['entity']->getURL()); -$pubdate = date('r', $vars['entity']->time_created); +$permalink = htmlspecialchars($vars['entity']->getURL(), ENT_NOQUOTES, 'UTF-8'); +$pubdate = date('r', $vars['entity']->getTimeCreated()); -$creator = elgg_view('object/creator', $vars); -$georss = elgg_view('object/georss', $vars); +$creator = elgg_view('page/components/creator', $vars); +$georss = elgg_view('page/components/georss', $vars); $extension = elgg_view('extensions/item'); $item = <<<__HTML |