[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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue