From: Roland Häder Date: Thu, 23 Jun 2022 05:34:40 +0000 (+0200) Subject: Wrong types, why call $b so often ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37f3f0e621d9ac319c8b0578f837ecf0c1bb8441;p=friendica-addons.git Wrong types, why call $b so often ... --- diff --git a/highlightjs/highlightjs.php b/highlightjs/highlightjs.php index e6ceff19..054cac98 100644 --- a/highlightjs/highlightjs.php +++ b/highlightjs/highlightjs.php @@ -16,7 +16,7 @@ function highlightjs_install() Hook::register('footer', __FILE__, 'highlightjs_footer'); } -function highlightjs_head(App $a, array &$b) +function highlightjs_head(App $a, strring &$b) { if ($a->getCurrentTheme() == 'frio') { $style = 'bootstrap'; @@ -27,7 +27,7 @@ function highlightjs_head(App $a, array &$b) DI::page()->registerStylesheet(__DIR__ . '/asset/styles/' . $style . '.css'); } -function highlightjs_footer(App $a, array &$b) +function highlightjs_footer(App $a, string &$b) { DI::page()->registerFooterScript(__DIR__ . '/asset/highlight.pack.js'); DI::page()->registerFooterScript(__DIR__ . '/highlightjs.js');