Revert "Fix: use global $object instead parameter"
This reverts commit 4f8c485914.
This commit is contained in:
parent
4f8c485914
commit
c6d841613b
@ -728,13 +728,13 @@ function dol_move_uploaded_file($src_file, $dest_file, $allowoverwrite, $disable
|
||||
* @param int $disableglob Disable usage of glob like *
|
||||
* @param int $nophperrors Disable all PHP output errors
|
||||
* @param int $nohook Disable all hooks
|
||||
* @deprecated object $object Current object in use
|
||||
* @param object $object Current object in use
|
||||
* @return boolean True if file is deleted (or if glob is used and there's nothing to delete), False if error
|
||||
*/
|
||||
function dol_delete_file($file,$disableglob=0,$nophperrors=0,$nohook=0,$object=null)
|
||||
{
|
||||
global $db, $conf, $user, $langs;
|
||||
global $object, $hookmanager;
|
||||
global $hookmanager;
|
||||
|
||||
$langs->load("other");
|
||||
$langs->load("errors");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user