fix upload photo for categ
This commit is contained in:
parent
34f08ce082
commit
1a389b6faf
@ -1530,8 +1530,6 @@ class Categorie extends CommonObject
|
|||||||
*/
|
*/
|
||||||
function add_photo($sdir, $file)
|
function add_photo($sdir, $file)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
|
|
||||||
$dir = $sdir .'/'. get_exdir($this->id,2,0,0,$this,'category') . $this->id ."/";
|
$dir = $sdir .'/'. get_exdir($this->id,2,0,0,$this,'category') . $this->id ."/";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user