Fix load of CSS using dolibarr server

This commit is contained in:
Laurent Destailleur 2019-12-19 10:41:59 +01:00
parent e8db3a2aa0
commit fea34fa908

View File

@ -82,7 +82,9 @@ if (empty($pageid))
{
$object->fetch(0, $website);
}
$objectpage=new WebsitePage($db);
/* Not required for CSS file
$array=$objectpage->fetchAll($object->id);
if (is_array($array) && count($array) > 0)
@ -90,13 +92,16 @@ if (empty($pageid))
$firstrep=reset($array);
$pageid=$firstrep->id;
}
*/
}
/* Not required for CSS file
if (empty($pageid))
{
$langs->load("website");
print $langs->trans("PreviewOfSiteNotYetAvailable");
exit;
}
*/
// Security: Delete string ../ into $original_file
global $dolibarr_main_data_root;