mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 04:23:42 +00:00
Wrong types, why call $b so often ...
This commit is contained in:
parent
af994b4818
commit
37f3f0e621
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ function highlightjs_install()
|
||||||
Hook::register('footer', __FILE__, 'highlightjs_footer');
|
Hook::register('footer', __FILE__, 'highlightjs_footer');
|
||||||
}
|
}
|
||||||
|
|
||||||
function highlightjs_head(App $a, array &$b)
|
function highlightjs_head(App $a, strring &$b)
|
||||||
{
|
{
|
||||||
if ($a->getCurrentTheme() == 'frio') {
|
if ($a->getCurrentTheme() == 'frio') {
|
||||||
$style = 'bootstrap';
|
$style = 'bootstrap';
|
||||||
|
@ -27,7 +27,7 @@ function highlightjs_head(App $a, array &$b)
|
||||||
DI::page()->registerStylesheet(__DIR__ . '/asset/styles/' . $style . '.css');
|
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__ . '/asset/highlight.pack.js');
|
||||||
DI::page()->registerFooterScript(__DIR__ . '/highlightjs.js');
|
DI::page()->registerFooterScript(__DIR__ . '/highlightjs.js');
|
||||||
|
|
Loading…
Reference in a new issue