diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/blog/views/default/object/blog.php | 6 | ||||
-rw-r--r-- | mod/file/views/default/object/file.php | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index 23ccb57be..fd2c4fee8 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -23,11 +23,7 @@ $owner_link = elgg_view('output/url', array( 'text' => $owner->name, )); $author_text = elgg_echo('blog:author_by_line', array($owner_link)); -if ($blog->tags) { - $tags = "<p class=\"elgg-tags\">" . elgg_view('output/tags', array('tags' => $blog->tags)) . "</p>"; -} else { - $tags = ""; -} +$tags = elgg_view('output/tags', array('tags' => $blog->tags)); $date = elgg_view_friendly_time($blog->publish_date); // The "on" status changes for comments, so best to check for !Off diff --git a/mod/file/views/default/object/file.php b/mod/file/views/default/object/file.php index 1d3aa7140..89367feb3 100644 --- a/mod/file/views/default/object/file.php +++ b/mod/file/views/default/object/file.php @@ -34,11 +34,7 @@ $file_icon = elgg_view('file/icon', array( 'size' => 'small' )); -if ($file->tags) { - $tags = "<p class=\"elgg-tags\">" . elgg_view('output/tags', array('tags' => $file->tags)) . "</p>"; -} else { - $tags = ""; -} +$tags = elgg_view('output/tags', array('tags' => $file->tags)); $date = elgg_view_friendly_time($file->time_created); $comments_count = elgg_count_comments($file); |