Qual: Clean code

Perf: Country id+code is now stored into MAIN_INFO_SOCIETE_PAYS instead of only id. This avoid a select to finf country code at each request.
This commit is contained in:
Laurent Destailleur
2010-08-21 15:30:17 +00:00
parent 7ee685640b
commit 1b9ee9c597
11 changed files with 769 additions and 750 deletions

View File

@@ -244,6 +244,19 @@ function dol_mimetype($file,$default='application/octet-stream',$shortmime=0)
}
/**
* \brief Test if filename is a directory
* \param folder Name of folder
* \return boolean True if it's a directory, False if not found
*/
function dol_is_dir($folder)
{
$newfolder=dol_osencode($folder);
if (is_dir($newfolder)) return true;
else return false;
}
/**
* \brief Test if a folder is empty
* \param folder Name of folder