소스 검색

api_get_path(SYS_PLUGIN_PATH) already contains a slash

Julio Montoya 13 년 전
부모
커밋
cd48757bbb
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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 '';
         }