[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

@ -97,9 +97,9 @@ function smileybutton_jot_tool(Friendica\App $a, &$b)
$s .= '</tr></table>';
//Add css to header
$css_file = 'addon/smileybutton/view/' . $a->getCurrentTheme() . '.css';
$css_file = __DIR__ . '/view/' . $a->getCurrentTheme() . '.css';
if (!file_exists($css_file)) {
$css_file = 'addon/smileybutton/view/default.css';
$css_file = __DIR__ . '/view/default.css';
}
DI::page()->registerStylesheet($css_file);