[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
|
@ -129,9 +129,7 @@ function geonames_addon_settings(App $a, &$s)
|
|||
return;
|
||||
}
|
||||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
$stylesheetPath = __DIR__ . '/geonames.css';
|
||||
DI::page()->registerStylesheet($stylesheetPath);
|
||||
DI::page()->registerStylesheet(__DIR__ . '/geonames.css');
|
||||
|
||||
/* Get the current state of our config variable */
|
||||
$enabled = intval(DI::pConfig()->get(local_user(), 'geonames', 'enable'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue