mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 16:12:39 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user