Merge pull request #6844 from defrance/patch-10
problems with additionnal template type
This commit is contained in:
commit
92d7b907be
@ -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