Skip to content
Snippets Groups Projects
Commit 3126ffcf authored by Regis Houssin's avatar Regis Houssin
Browse files

Works on capability to hook a thirdparty module.

parent 4b19237d
No related branches found
No related tags found
No related merge requests found
...@@ -1161,12 +1161,10 @@ class CommonObject ...@@ -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 ...@@ -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 ...@@ -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)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment