Forráskód Böngészése

api_get_path(SYS_PLUGIN_PATH) already contains a slash

Julio Montoya 13 éve
szülő
commit
cd48757bbb
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      main/inc/lib/plugin.class.php

+ 2 - 3
main/inc/lib/plugin.class.php

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