Skip to content

Commit

Permalink
Fix: use global $object instead parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed May 6, 2015
1 parent a6b0f6c commit 1793097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/lib/files.lib.php
Expand Up @@ -726,13 +726,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");
Expand Down

0 comments on commit 1793097

Please sign in to comment.