mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Remove deprecated App::registerStylesheet()/FooterScript() - replace with DI::page()->registerStylesheet()/FooterScript()
This commit is contained in:
parent
335fcf670f
commit
4b6527e273
5 changed files with 15 additions and 10 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\DI;
|
||||
|
||||
function highlightjs_install()
|
||||
{
|
||||
|
@ -29,11 +30,11 @@ function highlightjs_head(App $a, &$b)
|
|||
$style = 'default';
|
||||
}
|
||||
|
||||
$a->registerStylesheet(__DIR__ . '/asset/styles/' . $style . '.css');
|
||||
DI::page()->registerStylesheet(__DIR__ . '/asset/styles/' . $style . '.css');
|
||||
}
|
||||
|
||||
function highlightjs_footer(App $a, &$b)
|
||||
{
|
||||
$a->registerFooterScript(__DIR__ . '/asset/highlight.pack.js');
|
||||
$a->registerFooterScript(__DIR__ . '/highlightjs.js');
|
||||
DI::page()->registerFooterScript(__DIR__ . '/asset/highlight.pack.js');
|
||||
DI::page()->registerFooterScript(__DIR__ . '/highlightjs.js');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue