This commit is contained in:
Laurent Destailleur
2012-03-13 09:38:00 +01:00
parent 4f23be1b50
commit 66bad9ea04
29 changed files with 198 additions and 132 deletions

View File

@@ -44,9 +44,11 @@ abstract class ModelePDFCommandes extends CommonDocGenerator
/**
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @return array List of templates
*/
function liste_modeles($db)
function liste_modeles($db,$maxfilenamelength=0)
{
global $conf;
@@ -54,7 +56,7 @@ abstract class ModelePDFCommandes extends CommonDocGenerator
$liste=array();
include_once(DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php');
$liste=getListOfModels($db,$type,'');
$liste=getListOfModels($db,$type,$maxfilenamelength);
return $liste;
}