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