]> git.mxchange.org Git - friendica-addons.git/blobdiff - cookienotice/cookienotice.php
Merge pull request #927 from nupplaphil/task/replace_getClass
[friendica-addons.git] / cookienotice / cookienotice.php
index 097f3c25ce2b5a8424614b63d62dc0d988d7861b..bad867e790cd56ef8596d79fafc4685ae900c1b5 100644 (file)
@@ -12,6 +12,7 @@ use Friendica\Core\Config;
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
+use Friendica\DI;
 
 /**
  * cookienotice_install
@@ -90,8 +91,8 @@ function cookienotice_page_content_top(App $a, &$b)
        $stylesheetPath = __DIR__ . '/cookienotice.css';
        $footerscriptPath = __DIR__ . '/cookienotice.js';
 
-       $a->registerStylesheet($stylesheetPath);
-       $a->registerFooterScript($footerscriptPath);
+       DI::page()->registerStylesheet($stylesheetPath);
+       DI::page()->registerFooterScript($footerscriptPath);
 }
 
 /**