aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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" ;
}
}