Fix $db
This commit is contained in:
parent
d1daf94b81
commit
31a60ff30b
@ -586,7 +586,7 @@ class Utils
|
|||||||
*/
|
*/
|
||||||
function generateDoc($module)
|
function generateDoc($module)
|
||||||
{
|
{
|
||||||
global $conf, $langs, $db;
|
global $conf, $langs;
|
||||||
global $dirins;
|
global $dirins;
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
@ -708,7 +708,7 @@ class Utils
|
|||||||
$outfile=$dirofmoduletmp.'/out.tmp';
|
$outfile=$dirofmoduletmp.'/out.tmp';
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/utils.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/utils.class.php';
|
||||||
$utils = new Utils($db);
|
$utils = new Utils($this->db);
|
||||||
$resarray = $utils->executeCLI($command, $outfile);
|
$resarray = $utils->executeCLI($command, $outfile);
|
||||||
if ($resarray['result'] != '0')
|
if ($resarray['result'] != '0')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user