diff options
author | friendica <info@friendica.com> | 2015-02-04 18:26:59 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-04 18:26:59 -0800 |
commit | 24355430a8ca8420aa0c1d42e9c38932d1cd54f7 (patch) | |
tree | 715d1f8589ead52e874e56d46d7f5d514d5ff595 /include/widgets.php | |
parent | 6e84dbe493a660b391c519c331aaa79878adf933 (diff) | |
download | volse-hubzilla-24355430a8ca8420aa0c1d42e9c38932d1cd54f7.tar.gz volse-hubzilla-24355430a8ca8420aa0c1d42e9c38932d1cd54f7.tar.bz2 volse-hubzilla-24355430a8ca8420aa0c1d42e9c38932d1cd54f7.zip |
allow anybody to view ratings - including oneself. Only allow authenticated folks to edit them.
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/widgets.php b/include/widgets.php index a94bf03dc..e995b213f 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -946,16 +946,16 @@ function widget_rating($arr) { } - if((! $remote) && (! local_channel())) - return; - - $o = '<div class="widget rateme">'; - if($remote) - $o .= '<a class="rateme" href="' . $url . '"><i class="icon-pencil"></i> ' . t('Rate Me') . '</a>'; - else - $o .= '<div class="rateme fakelink" onclick="doRatings(\'' . $hash . '\'); return false;"><i class="icon-pencil"></i> ' . t('Rate Me') . '</div>'; + if(($remote) || (local_channel())) { + $o = '<div class="widget rateme">'; + if($remote) + $o .= '<a class="rateme" href="' . $url . '"><i class="icon-pencil"></i> ' . t('Rate Me') . '</a>'; + else + $o .= '<div class="rateme fakelink" onclick="doRatings(\'' . $hash . '\'); return false;"><i class="icon-pencil"></i> ' . t('Rate Me') . '</div>'; + $o .= '</div>'; + } - $o .= '</div><div class="widget rateme"><a class="rateme" href="ratings/' . $hash . '"><i class="icon-eye-open"></i> ' . t('View Ratings') . '</a>'; + $o .= '<div class="widget rateme"><a class="rateme" href="ratings/' . $hash . '"><i class="icon-eye-open"></i> ' . t('View Ratings') . '</a>'; $o .= '</div>'; return $o; |