Browse Source

plugin base: translation bug

Laurent Opprecht 13 năm trước cách đây
mục cha
commit
792d78ecfb
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      main/inc/lib/plugin.class.php

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

@@ -153,9 +153,9 @@ class Plugin
             global $language_interface;
 
             $root = api_get_path(SYS_PLUGIN_PATH);
-            $name = $this->get_name();
+            $plugin_name = $this->get_name();
             $language = $language_interface;
-            $path = "$root/$name/lang/$language.php";
+            $path = "$root/$plugin_name/lang/$language.php";
             if (is_readable($path))
             {
                 include $path;