From 25e4791497d5afda11d4222a5b0b5492cb76d097 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 18 Dec 2020 14:27:22 +0100 Subject: [PATCH] Fix missing creation of master.inc.php file in website import --- htdocs/website/index.php | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 9cada0bc506..f36225b2407 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -598,16 +598,13 @@ if ($action == 'addcontainer') $db->begin(); $objectpage->fk_website = $object->id; - if (GETPOSTISSET('fetchexternalurl')) + + if (GETPOSTISSET('fetchexternalurl')) // Fetch from external url { $urltograb = GETPOST('externalurl', 'alpha'); $grabimages = GETPOST('grabimages', 'alpha'); $grabimagesinto = GETPOST('grabimagesinto', 'alpha'); - //var_dump($grabimages);exit; - } - if (GETPOSTISSET('fetchexternalurl')) - { include_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php'; if (empty($urltograb)) @@ -749,6 +746,7 @@ if ($action == 'addcontainer') // Now loop to fetch JS $tmp = $objectpage->htmlheader; + // We grab files found into