From 780a538fe00d10b25502a025d8da008c2d4d47de Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Nov 2018 17:37:39 +0100 Subject: [PATCH] Fix multicompany not accessible from website. --- htdocs/core/class/conf.class.php | 6 +++++- htdocs/website/index.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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";