[various] Use __DIR__ constant in all Page registerStylesheet and registerFooterScript calls

This commit is contained in:
Hypolite Petovan 2021-11-20 04:29:09 -05:00
parent 5c0b20b21f
commit f0522a998b
10 changed files with 14 additions and 26 deletions

View file

@ -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');
}
/**