Fix wrong nb of parmaeters
This commit is contained in:
parent
6bc38acb56
commit
904e399293
@ -741,7 +741,7 @@ if (empty($reshook))
|
|||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT .'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT .'/core/lib/files.lib.php';
|
||||||
// the dir dirname($newfile) is directory of logo, so we should have only one file at once into index, so we delete indexes for the dir
|
// the dir dirname($newfile) is directory of logo, so we should have only one file at once into index, so we delete indexes for the dir
|
||||||
deleteFilesIntoDatabaseIndex(dirname($newfile), '', '', 'uploaded', 1);
|
deleteFilesIntoDatabaseIndex(dirname($newfile), '', '');
|
||||||
// now we index the uploaded logo file
|
// now we index the uploaded logo file
|
||||||
addFileIntoDatabaseIndex(dirname($newfile), basename($newfile), '', 'uploaded', 1);
|
addFileIntoDatabaseIndex(dirname($newfile), basename($newfile), '', 'uploaded', 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user