and working for anonymous...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@558 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
68efee3e22
commit
8c2001ef6f
2 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,7 @@ class NumericScore extends Extension {
|
|||
|
||||
if(is_a($event, 'DisplayingImageEvent')) {
|
||||
global $user;
|
||||
global $config;
|
||||
if(!$user->is_anonymous() || $config->get_bool("numeric_score_anon")) {
|
||||
$this->theme->display_voter($event->page, $event->image->id, $event->image->numeric_score);
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ class TextScore extends Extension {
|
|||
|
||||
if(is_a($event, 'DisplayingImageEvent')) {
|
||||
global $user;
|
||||
global $config;
|
||||
if(!$user->is_anonymous() || $config->get_bool("text_score_anon")) {
|
||||
$this->theme->display_scorer($event->page, $event->image->id, $event->image->text_score);
|
||||
}
|
||||
|
|
Reference in a new issue