problems with additionnal template type
If i active my new xml templater, and keep odt, the odt folder is added on folder to scan on my xml path ex : odt folder defined : c:\toto xml folder defined : c:\tata folder scanned with odt : c:\toto folder scanned with odt : c:\toto,c:\tata
This commit is contained in:
parent
169e63d49a
commit
8e68aa86ac
@ -1530,8 +1530,10 @@ function getListOfModels($db,$type,$maxfilenamelength=0)
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
|
||||
$const=$obj->description;
|
||||
$dirtoscan.=($dirtoscan?',':'').preg_replace('/[\r\n]+/',',',trim($conf->global->$const));
|
||||
$listoffiles=array();
|
||||
//irtoscan.=($dirtoscan?',':'').preg_replace('/[\r\n]+/',',',trim($conf->global->$const));
|
||||
$dirtoscan= preg_replace('/[\r\n]+/',',',trim($conf->global->$const));
|
||||
|
||||
$listoffiles=array();
|
||||
|
||||
// Now we add models found in directories scanned
|
||||
$listofdir=explode(',',$dirtoscan);
|
||||
@ -2111,4 +2113,4 @@ function cartesianArray(array $input) {
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user