Parcourir la source

plugin base: translation bug

Laurent Opprecht il y a 13 ans
Parent
commit
792d78ecfb
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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;