diff --git a/contrib/numeric_score/main.php b/contrib/numeric_score/main.php index a1228b97..daf13a72 100644 --- a/contrib/numeric_score/main.php +++ b/contrib/numeric_score/main.php @@ -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); } diff --git a/contrib/text_score/main.php b/contrib/text_score/main.php index a96850b1..f755bf22 100644 --- a/contrib/text_score/main.php +++ b/contrib/text_score/main.php @@ -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); }