diff options
author | friendica <info@friendica.com> | 2015-02-04 18:31:12 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-04 18:31:12 -0800 |
commit | 5a0ccbfcf375acad49a0f7e818fe5611c2f858cc (patch) | |
tree | ed1a24d60d151e7fc728894b4f16947de5e01212 /include | |
parent | 24355430a8ca8420aa0c1d42e9c38932d1cd54f7 (diff) | |
download | volse-hubzilla-5a0ccbfcf375acad49a0f7e818fe5611c2f858cc.tar.gz volse-hubzilla-5a0ccbfcf375acad49a0f7e818fe5611c2f858cc.tar.bz2 volse-hubzilla-5a0ccbfcf375acad49a0f7e818fe5611c2f858cc.zip |
forgot to add the self exclusion
Diffstat (limited to 'include')
-rw-r--r-- | include/widgets.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/widgets.php b/include/widgets.php index e995b213f..d457db07d 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -936,17 +936,19 @@ function widget_rating($arr) { } } + $self = false; + if(local_channel()) { $channel = $a->get_channel(); if($hash == $channel['channel_hash']) - return; + $self = true; head_add_js('ratings.js'); } - if(($remote) || (local_channel())) { + if((($remote) || (local_channel())) && (! $self)) { $o = '<div class="widget rateme">'; if($remote) $o .= '<a class="rateme" href="' . $url . '"><i class="icon-pencil"></i> ' . t('Rate Me') . '</a>'; |