From c5e96a72021106a4d23fcf4ee83309a4b20182b5 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 14 Dec 2023 22:31:53 +0000 Subject: [PATCH] functions --- themes/rule34v2/tag_edit.theme.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/rule34v2/tag_edit.theme.php b/themes/rule34v2/tag_edit.theme.php index 1c1533af..8994ceb4 100644 --- a/themes/rule34v2/tag_edit.theme.php +++ b/themes/rule34v2/tag_edit.theme.php @@ -21,26 +21,26 @@ class CustomTagEditTheme extends TagEditTheme $page->add_block(new Block("Mass Tag Edit", $html)); } - public function get_tag_editor_html(Image $image): string + public function get_tag_editor_html(Image $image): \MicroHTML\HTMLElement { $h_tags = html_escape($image->get_tag_list()); - return " + return \MicroHTML\rawHTML(" Tags - "; + "); } - public function get_source_editor_html(Image $image): string + public function get_source_editor_html(Image $image): \MicroHTML\HTMLElement { global $user; $h_source = html_escape($image->get_source()); $f_source = $this->format_source($image->get_source()); $style = "overflow: hidden; white-space: nowrap; max-width: 350px; text-overflow: ellipsis;"; - return " + return \MicroHTML\rawHTML(" Source Link @@ -52,6 +52,6 @@ class CustomTagEditTheme extends TagEditTheme ")." - "; + "); } }