X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=highlightjs%2Fhighlightjs.php;h=097d34c7ee9ffc06b3149e2efc71cf214dab023b;hb=dc55b89e02faa247d397968acb277a954da3b715;hp=054cac983cec1ba3d48c6a353ff8dbc906eb4f37;hpb=37f3f0e621d9ac319c8b0578f837ecf0c1bb8441;p=friendica-addons.git diff --git a/highlightjs/highlightjs.php b/highlightjs/highlightjs.php index 054cac98..097d34c7 100644 --- a/highlightjs/highlightjs.php +++ b/highlightjs/highlightjs.php @@ -16,9 +16,9 @@ function highlightjs_install() Hook::register('footer', __FILE__, 'highlightjs_footer'); } -function highlightjs_head(App $a, strring &$b) +function highlightjs_head(string &$str) { - if ($a->getCurrentTheme() == 'frio') { + if (DI::app()->getCurrentTheme() == 'frio') { $style = 'bootstrap'; } else { $style = 'default'; @@ -27,7 +27,7 @@ function highlightjs_head(App $a, strring &$b) DI::page()->registerStylesheet(__DIR__ . '/asset/styles/' . $style . '.css'); } -function highlightjs_footer(App $a, string &$b) +function highlightjs_footer(string &$str) { DI::page()->registerFooterScript(__DIR__ . '/asset/highlight.pack.js'); DI::page()->registerFooterScript(__DIR__ . '/highlightjs.js');