Fix: dol_is_dir may not be loaded, so call fails

This commit is contained in:
Laurent Destailleur 2013-03-08 01:50:16 +01:00
parent 970b332bd8
commit c74f68d14a

View File

@ -616,7 +616,7 @@ class Translate
$newdir=dol_osencode($dir); $newdir=dol_osencode($dir);
// Check if directory exists // 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'; $fonc='numberwords';
if (file_exists($newdir.'/functions_'.$fonc.'.lib.php')) if (file_exists($newdir.'/functions_'.$fonc.'.lib.php'))