Fix: use global $object instead parameter

This commit is contained in:
Regis Houssin 2015-05-06 16:44:47 +02:00
parent 467ee7b771
commit 4f8c485914

View File

@ -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
* @param object $object Current object in use
* @deprecated 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 $hookmanager;
global $object, $hookmanager;
$langs->load("other");
$langs->load("errors");