diff --git a/themes/danbooru/page.class.php b/themes/danbooru/page.class.php index 99009405..3eee4ac0 100644 --- a/themes/danbooru/page.class.php +++ b/themes/danbooru/page.class.php @@ -4,6 +4,8 @@ declare(strict_types=1); namespace Shimmie2; +use MicroHTML\HTMLElement; + /** * Name: Danbooru Theme * Author: Bzchan @@ -158,7 +160,7 @@ class Page extends BasePage EOD; } - public function navlinks(Link $link, string $desc, bool $active): ?string + public function navlinks(Link $link, HTMLElement|string $desc, bool $active): ?string { $html = null; if ($active) { diff --git a/themes/danbooru2/page.class.php b/themes/danbooru2/page.class.php index d96d84fd..d4575d37 100644 --- a/themes/danbooru2/page.class.php +++ b/themes/danbooru2/page.class.php @@ -4,6 +4,8 @@ declare(strict_types=1); namespace Shimmie2; +use MicroHTML\HTMLElement; + /** * Name: Danbooru 2 Theme * Author: Bzchan , updated by Daniel Oaks @@ -158,7 +160,7 @@ class Page extends BasePage EOD; } - public function navlinks(Link $link, string $desc, bool $active): ?string + public function navlinks(Link $link, HTMLElement|string $desc, bool $active): ?string { $html = null; if ($active) { diff --git a/themes/lite/page.class.php b/themes/lite/page.class.php index 7abecb7c..212c8964 100644 --- a/themes/lite/page.class.php +++ b/themes/lite/page.class.php @@ -4,6 +4,8 @@ declare(strict_types=1); namespace Shimmie2; +use MicroHTML\HTMLElement; + /** * Name: Lite Theme * Author: Zach Hall @@ -129,7 +131,7 @@ EOD; return $html; } - public function navlinks(Link $link, string $desc, bool $active): ?string + public function navlinks(Link $link, HTMLElement|string $desc, bool $active): ?string { $html = null; if ($active) {