fix upload photo for categ

This commit is contained in:
florian HENRY 2017-09-08 10:36:45 +02:00
parent 34f08ce082
commit 1a389b6faf

View File

@ -1530,8 +1530,6 @@ class Categorie extends CommonObject
*/
function add_photo($sdir, $file)
{
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
$dir = $sdir .'/'. get_exdir($this->id,2,0,0,$this,'category') . $this->id ."/";