diff options
author | Mario <mario@mariovavti.com> | 2024-03-17 21:34:06 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-17 21:34:06 +0000 |
commit | 0745d0616a144b23d342604657669ecc2514b9e3 (patch) | |
tree | 9bfb3efd6415ca5184f71e65b450897491d28776 /include/plugin.php | |
parent | 2114779037637115870b9a44cd9dea8382531ae2 (diff) | |
parent | 9cbb9a48742d41eba8d2d65e1a74cd0d6fe61554 (diff) | |
download | volse-hubzilla-0745d0616a144b23d342604657669ecc2514b9e3.tar.gz volse-hubzilla-0745d0616a144b23d342604657669ecc2514b9e3.tar.bz2 volse-hubzilla-0745d0616a144b23d342604657669ecc2514b9e3.zip |
Merge branch 'dev' into 9.0RC
Diffstat (limited to 'include/plugin.php')
-rw-r--r-- | include/plugin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/plugin.php b/include/plugin.php index cc740f915..bbfeab988 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -985,12 +985,12 @@ function format_css_if_exists($source) { } } else { // It's a file from the theme - $path = '/' . theme_include($script); + $path = theme_include($script); } if($path) { $qstring = ((parse_url($path, PHP_URL_QUERY)) ? '&' : '?') . 'v=' . STD_VERSION; - return '<link rel="stylesheet" href="' . $path_prefix . $path . $qstring . '" type="text/css" media="' . $source[1] . '">' . "\r\n"; + return '<link rel="stylesheet" href="' . $path_prefix . '/' . $path . $qstring . '" type="text/css" media="' . $source[1] . '">' . "\r\n"; } } @@ -1057,11 +1057,11 @@ function format_js_if_exists($source) { } else { // It's a file from the theme - $path = '/' . theme_include($source); + $path = theme_include($source); } if($path) { $qstring = ((parse_url($path, PHP_URL_QUERY)) ? '&' : '?') . 'v=' . STD_VERSION; - return '<script src="' . $path_prefix . $path . $qstring . '" ></script>' . "\r\n" ; + return '<script src="' . $path_prefix . '/' . $path . $qstring . '" ></script>' . "\r\n" ; } } |