api_get_path(SYS_PLUGIN_PATH) already contains a slash

skala
Julio Montoya 14 years ago
parent f054b0533f
commit cd48757bbb
  1. 3
      main/inc/lib/plugin.class.php

@ -64,8 +64,7 @@ class Plugin {
function get_css() { function get_css() {
$name = $this->get_name(); $name = $this->get_name();
$root = api_get_path(SYS_PLUGIN_PATH); $path = api_get_path(SYS_PLUGIN_PATH)."$name/resources/$name.css";
$path = "$root/$name/resources/$name.css";
if (!is_readable($path)) { if (!is_readable($path)) {
return ''; return '';
} }

Loading…
Cancel
Save