Skip to content

Commit

Permalink
Fix: dol_is_dir may not be loaded, so call fails
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 8, 2013
1 parent 63e1b72 commit 44698fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/class/translate.class.php
Expand Up @@ -621,7 +621,7 @@ function getLabelFromNumber($number,$isamount=0)
$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'))
Expand Down Expand Up @@ -691,4 +691,4 @@ function getLabelFromKey($db,$key,$tablename,$fieldkey,$fieldlabel)

}

?>
?>

0 comments on commit 44698fc

Please sign in to comment.