[various] Use __DIR__ constant in all Page registerStylesheet and registerFooterScript calls
This commit is contained in:
parent
5c0b20b21f
commit
f0522a998b
10 changed files with 14 additions and 26 deletions
|
@ -85,11 +85,8 @@ function cookienotice_addon_admin_post(App $a)
|
|||
*/
|
||||
function cookienotice_page_content_top(App $a, &$b)
|
||||
{
|
||||
$stylesheetPath = __DIR__ . '/cookienotice.css';
|
||||
$footerscriptPath = __DIR__ . '/cookienotice.js';
|
||||
|
||||
DI::page()->registerStylesheet($stylesheetPath);
|
||||
DI::page()->registerFooterScript($footerscriptPath);
|
||||
DI::page()->registerStylesheet(__DIR__ . '/cookienotice.css');
|
||||
DI::page()->registerFooterScript(__DIR__ . '/cookienotice.js');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue