aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/views/default/object/bookmarks.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 04:23:14 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 04:23:14 +0000
commit11ed046baa3e2936a5ba85194cf0246addd943a5 (patch)
tree1363b80536bc5c7d0bc484a8d0203c08715c0dfb /mod/bookmarks/views/default/object/bookmarks.php
parent5d05d9ef6b66d768b8fd6ab1a80430d8e12d023f (diff)
downloadelgg-11ed046baa3e2936a5ba85194cf0246addd943a5.tar.gz
elgg-11ed046baa3e2936a5ba85194cf0246addd943a5.tar.bz2
fixed display issue when a bookmark has no description text
git-svn-id: http://code.elgg.org/elgg/trunk@8317 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/views/default/object/bookmarks.php')
-rw-r--r--mod/bookmarks/views/default/object/bookmarks.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/bookmarks/views/default/object/bookmarks.php b/mod/bookmarks/views/default/object/bookmarks.php
index 7e7c20af4..f28a45619 100644
--- a/mod/bookmarks/views/default/object/bookmarks.php
+++ b/mod/bookmarks/views/default/object/bookmarks.php
@@ -85,6 +85,9 @@ HTML;
$url = $bookmark->address;
$display_text = $url;
$excerpt = elgg_get_excerpt($bookmark->description);
+ if ($excerpt) {
+ $excerpt = " - $excerpt";
+ }
if (strlen($url) > 25) {
$bits = parse_url($url);
@@ -100,7 +103,7 @@ HTML;
'text' => $display_text
)));
- $content = "<span class=\"elgg-icon elgg-icon-following\"></span>$link - $excerpt";
+ $content = "<span class=\"elgg-icon elgg-icon-following\"></span>$link{$excerpt}";
$params = array(
'entity' => $bookmark,