Fix multicompany not accessible from website.
This commit is contained in:
parent
bb565d33f9
commit
780a538fe0
@ -238,7 +238,11 @@ class Conf
|
|||||||
{
|
{
|
||||||
global $mc;
|
global $mc;
|
||||||
$ret = @dol_include_once('/multicompany/class/actions_multicompany.class.php');
|
$ret = @dol_include_once('/multicompany/class/actions_multicompany.class.php');
|
||||||
if ($ret) $mc = new ActionsMulticompany($db);
|
if ($ret)
|
||||||
|
{
|
||||||
|
$mc = new ActionsMulticompany($db);
|
||||||
|
$this->mc = $mc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean some variables
|
// Clean some variables
|
||||||
|
|||||||
@ -2744,7 +2744,7 @@ if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpa
|
|||||||
}*/
|
}*/
|
||||||
$out.="\n<html><head>\n";
|
$out.="\n<html><head>\n";
|
||||||
$out.="<!-- htmlheader/style of page from database -->\n";
|
$out.="<!-- htmlheader/style of page from database -->\n";
|
||||||
// $out.=dolWebsiteReplacementOfLinks($object, $objectpage->htmlheader, 1);
|
$out.=dolWebsiteReplacementOfLinks($object, $objectpage->htmlheader, 1);
|
||||||
$out.="</head>\n";
|
$out.="</head>\n";
|
||||||
$out.="\n<body>";
|
$out.="\n<body>";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user