Add comment and renamed file to be sure new function is not called
directly. Not sure it's a good idea to have dolDeleteFile separated since it must be called only by dol_delete_file.
This commit is contained in:
parent
b39c9c514a
commit
54be534506
@ -796,12 +796,13 @@ function dol_delete_file($file,$disableglob=0,$nophperrors=0,$notrigger=0,$objec
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return dolDeleteFile($file, $disableglob, $nophperrors, $notrigger, $object);
|
return _dolDeleteFile($file, $disableglob, $nophperrors, $notrigger, $object);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a file or several files with a mask
|
* Remove a file or several files with a mask.
|
||||||
|
* Never call this function ! Call dol_delete_file file instead.
|
||||||
*
|
*
|
||||||
* @param string $file File to delete or mask of file to delete
|
* @param string $file File to delete or mask of file to delete
|
||||||
* @param int $disableglob Disable usage of glob like *
|
* @param int $disableglob Disable usage of glob like *
|
||||||
@ -811,7 +812,7 @@ function dol_delete_file($file,$disableglob=0,$nophperrors=0,$notrigger=0,$objec
|
|||||||
* @return boolean True if file is deleted, False if error
|
* @return boolean True if file is deleted, False if error
|
||||||
* @see dol_delete_file
|
* @see dol_delete_file
|
||||||
*/
|
*/
|
||||||
function dolDeleteFile($file,$disableglob=0,$nophperrors=0,$notrigger=0,$object=null)
|
function _dolDeleteFile($file,$disableglob=0,$nophperrors=0,$notrigger=0,$object=null)
|
||||||
{
|
{
|
||||||
global $db, $conf, $user, $langs;
|
global $db, $conf, $user, $langs;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user