Works on capability to hook a thirdparty module.
This commit is contained in:
parent
4b19237dd3
commit
3126ffcf01
@ -1161,12 +1161,10 @@ class CommonObject
|
|||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/'.$module.'/class/'.$module.'.class.php');
|
require_once(DOL_DOCUMENT_ROOT.'/'.$module.'/class/'.$module.'.class.php');
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
if (file_exists(DOL_DOCUMENT_ROOT.'/'.$module.'/lib/'.$module.'.lib.php'))
|
if (file_exists(DOL_DOCUMENT_ROOT.'/'.$module.'/lib/'.$module.'.lib.php'))
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/'.$module.'/lib/'.$module.'.lib.php');
|
require_once(DOL_DOCUMENT_ROOT.'/'.$module.'/lib/'.$module.'.lib.php');
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
$classname = ucfirst($module);
|
$classname = ucfirst($module);
|
||||||
$this->objModules[] = new $classname($this->db);
|
$this->objModules[] = new $classname($this->db);
|
||||||
@ -1225,6 +1223,7 @@ class CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return HTML table with title list
|
* Return HTML table with title list
|
||||||
|
* TODO mettre le html dans un template
|
||||||
*/
|
*/
|
||||||
function print_title_list()
|
function print_title_list()
|
||||||
{
|
{
|
||||||
@ -1265,6 +1264,7 @@ class CommonObject
|
|||||||
/**
|
/**
|
||||||
* Return HTML with selected object line
|
* Return HTML with selected object line
|
||||||
* @param line Selected object line
|
* @param line Selected object line
|
||||||
|
* TODO mettre le html dans un template
|
||||||
*/
|
*/
|
||||||
function printLine($line,$var=true,$num=0,$i=0,$dateSelector=0)
|
function printLine($line,$var=true,$num=0,$i=0,$dateSelector=0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user