aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-17 22:21:55 +0100
committerMario <mario@mariovavti.com>2024-03-17 22:21:55 +0100
commitb05845f495e7561eddf2ad5b0c9325649f5289af (patch)
tree2cc6e8f35b3ca1435476ca45e75885e01b3a287b /include
parent732dbfd6f56510127405767ca86af240d3c85cf4 (diff)
downloadvolse-hubzilla-b05845f495e7561eddf2ad5b0c9325649f5289af.tar.gz
volse-hubzilla-b05845f495e7561eddf2ad5b0c9325649f5289af.tar.bz2
volse-hubzilla-b05845f495e7561eddf2ad5b0c9325649f5289af.zip
cleanup some ancient code and fix check for $path so that it will not pass if theme_include() will not return anything. also add an empty zen.css file for the zen template
Diffstat (limited to 'include')
-rw-r--r--include/plugin.php8
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" ;
}
}