diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index c9669fc5ca9..35705b661d9 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -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 diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 0d3af42d0cf..f7ef4fa3fcd 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -2744,7 +2744,7 @@ if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpa }*/ $out.="\n\n"; $out.="\n"; -// $out.=dolWebsiteReplacementOfLinks($object, $objectpage->htmlheader, 1); + $out.=dolWebsiteReplacementOfLinks($object, $objectpage->htmlheader, 1); $out.="\n"; $out.="\n";