diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-24 16:37:53 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-24 16:37:53 +0000 |
commit | 51c843e64febb9a390b9abd83f8d3dd7acf39403 (patch) | |
tree | 79cbd4da219db530a7a25a7c2a39e18a5baa785e | |
parent | 1ac8dfb651704296797b095c05da4128b9a83abe (diff) | |
download | elgg-51c843e64febb9a390b9abd83f8d3dd7acf39403.tar.gz elgg-51c843e64febb9a390b9abd83f8d3dd7acf39403.tar.bz2 |
you can no longer comment on river item while logged out
git-svn-id: http://code.elgg.org/elgg/trunk@6177 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/blog/views/default/river/object/blog/create.php | 2 | ||||
-rw-r--r-- | mod/bookmarks/views/default/river/object/bookmarks/create.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php index 1eb3b0dc8..c14bd56e8 100644 --- a/mod/blog/views/default/river/object/blog/create.php +++ b/mod/blog/views/default/river/object/blog/create.php @@ -12,7 +12,7 @@ $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; $title = sprintf(elgg_echo('blog:river:create'), $url); $string .= $title . " <a href=\"{$object->getURL()}\">{$object->title}</a> <span class=\"entity_subtext\">" . friendly_time($object->time_created) . '</span>'; -if (get_plugin_setting('activitytype', 'riverdashboard') != 'classic') { +if (isloggedin()) { $string .= '<a class="river_comment_form_button link">' . elgg_echo('generic_comments:text') . '</a>'; $string .= elgg_view('likes/forms/link', array('entity' => $object)); } diff --git a/mod/bookmarks/views/default/river/object/bookmarks/create.php b/mod/bookmarks/views/default/river/object/bookmarks/create.php index 9243dfe4f..ba1c24572 100644 --- a/mod/bookmarks/views/default/river/object/bookmarks/create.php +++ b/mod/bookmarks/views/default/river/object/bookmarks/create.php @@ -9,7 +9,7 @@ $url = $object->getURL(); $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; $string = sprintf(elgg_echo("bookmarks:river:created"),$url) . " "; $string .= "<a href=\"" . $object->address . "\">" . $object->title . "</a> <span class='entity_subtext'>" . friendly_time($object->time_updated) . "</span>"; -if (get_plugin_setting('activitytype', 'riverdashboard') != 'classic'){ +if (isloggedin()){ $string .= "<a class='river_comment_form_button link'>Comment</a>"; $string .= elgg_view('likes/forms/link', array('entity' => $object)); } |