mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 11:58:48 +00: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
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue