Ver Fonte

api_get_path(SYS_PLUGIN_PATH) already contains a slash

Julio Montoya há 13 anos atrás
pai
commit
cd48757bbb
1 ficheiros alterados com 2 adições e 3 exclusões
  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 '';
         }