]> git.mxchange.org Git - friendica-addons.git/blobdiff - highlightjs/highlightjs.php
Merge pull request #950 from nupplaphil/bug/8182_another_notification_bug
[friendica-addons.git] / highlightjs / highlightjs.php
index 258cb4ad156f0ca29cafcfc79db39b0c5514eb30..823541bb458aee6d3546f7f619168a607436ab0f 100644 (file)
@@ -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');
 }