Skip to content

Commit

Permalink
Merge pull request #2797 from hregis/3.6
Browse files Browse the repository at this point in the history
Fix: add $object for use with triggers
  • Loading branch information
eldy committed May 11, 2015
2 parents 2a486f4 + 9a32d7e commit 973e225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/product/class/product.class.php
@@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2013 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2005-2015 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
* Copyright (C) 2007-2011 Jean Heimburger <jean@tiaris.info>
* Copyright (C) 2010-2013 Juanjo Menent <jmenent@2byte.es>
Expand Down Expand Up @@ -3376,7 +3376,7 @@ function delete_photo($file)
$filename = preg_replace('/'.preg_quote($dir,'/').'/i','',$file); // Nom du fichier

// On efface l'image d'origine
dol_delete_file($file);
dol_delete_file($file, 0, 0, 0, $this); // For triggers

// Si elle existe, on efface la vignette
if (preg_match('/(\.jpg|\.bmp|\.gif|\.png|\.tiff)$/i',$filename,$regs))
Expand Down

0 comments on commit 973e225

Please sign in to comment.