diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index fe6d26f6a13..9c492c9aaff 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -621,7 +621,7 @@ class Translate $newdir=dol_osencode($dir); // Check if directory exists - if (! dol_is_dir($dir)) continue; + if (! is_dir($newdir)) continue; // We must not use dol_is_dir here, function may not be loaded $fonc='numberwords'; if (file_exists($newdir.'/functions_'.$fonc.'.lib.php')) @@ -691,4 +691,4 @@ class Translate } -?> \ No newline at end of file +?>