This commit is contained in:
Laurent Destailleur 2011-09-24 02:01:26 +00:00
parent ba7f117cdf
commit 17fc17dd08
2 changed files with 8 additions and 7 deletions

View File

@ -766,9 +766,10 @@ function dol_delete_preview($object)
/** /**
* Get and save an upload file (for example after submitting a new file a mail form). * Get and save an upload file (for example after submitting a new file a mail form).
* All information used are in db, conf, langs, user and _FILES. * All information used are in db, conf, langs, user and _FILES.
* @param upload_dir Directory to store upload files *
* @param allowoverwrite 1=Allow overwrite existing file * @param string $upload_dir Directory to store upload files
* @param donotupdatesession 1=Do no edit _SESSION variable * @param int $allowoverwrite 1=Allow overwrite existing file
* @param int $donotupdatesession 1=Do no edit _SESSION variable
* @return string Message with result of upload and store. * @return string Message with result of upload and store.
*/ */
function dol_add_file_process($upload_dir,$allowoverwrite=0,$donotupdatesession=0) function dol_add_file_process($upload_dir,$allowoverwrite=0,$donotupdatesession=0)

View File

@ -3349,9 +3349,9 @@ function create_exdir($dir)
} }
/** /**
* Creation of a directory (recursive) * Creation of a directory (this can create recursive subdir)
* *
* @param $dir Directory to create * @param string $dir Directory to create (Separator must be '/'. Example: '/mydir/mysubdir')
* @return int < 0 if KO, 0 = already exists, > 0 if OK * @return int < 0 if KO, 0 = already exists, > 0 if OK
*/ */
function dol_mkdir($dir) function dol_mkdir($dir)