and working for anonymous...

git-svn-id: file:///home/shish/svn/shimmie2/trunk@558 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-10-22 03:17:08 +00:00
parent 68efee3e22
commit 8c2001ef6f
2 changed files with 2 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);
}