More MicroHTML

This commit is contained in:
Luana
2023-06-29 02:50:32 -03:00
committed by Shish
parent 84d232ca0d
commit 91710f4c59
4 changed files with 50 additions and 34 deletions

View File

@@ -203,7 +203,7 @@ class Ratings extends Extension
{
global $user;
$event->add_part(
$this->theme->get_rater_html(
(string)$this->theme->get_rater_html(
$event->image->id,
$event->image->rating,
$user->can(Permissions::EDIT_IMAGE_RATING)
@@ -345,7 +345,7 @@ class Ratings extends Extension
global $user;
if ($user->can(Permissions::BULK_EDIT_IMAGE_RATING)) {
$event->add_action("bulk_rate", "Set (R)ating", "r", "", $this->theme->get_selection_rater_html(["?"]));
$event->add_action("bulk_rate", "Set (R)ating", "r", "", (string)$this->theme->get_selection_rater_html(selected_options: ["?"]));
}
}