Fix multicompany not accessible from website.

This commit is contained in:
Laurent Destailleur 2018-11-27 17:37:39 +01:00
parent bb565d33f9
commit 780a538fe0
2 changed files with 6 additions and 2 deletions

View File

@ -238,7 +238,11 @@ class Conf
{
global $mc;
$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

View File

@ -2744,7 +2744,7 @@ if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpa
}*/
$out.="\n<html><head>\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.="\n<body>";