Fix load of CSS using dolibarr server
This commit is contained in:
parent
e8db3a2aa0
commit
fea34fa908
@ -82,7 +82,9 @@ if (empty($pageid))
|
|||||||
{
|
{
|
||||||
$object->fetch(0, $website);
|
$object->fetch(0, $website);
|
||||||
}
|
}
|
||||||
|
|
||||||
$objectpage=new WebsitePage($db);
|
$objectpage=new WebsitePage($db);
|
||||||
|
/* Not required for CSS file
|
||||||
$array=$objectpage->fetchAll($object->id);
|
$array=$objectpage->fetchAll($object->id);
|
||||||
|
|
||||||
if (is_array($array) && count($array) > 0)
|
if (is_array($array) && count($array) > 0)
|
||||||
@ -90,13 +92,16 @@ if (empty($pageid))
|
|||||||
$firstrep=reset($array);
|
$firstrep=reset($array);
|
||||||
$pageid=$firstrep->id;
|
$pageid=$firstrep->id;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
/* Not required for CSS file
|
||||||
if (empty($pageid))
|
if (empty($pageid))
|
||||||
{
|
{
|
||||||
$langs->load("website");
|
$langs->load("website");
|
||||||
print $langs->trans("PreviewOfSiteNotYetAvailable");
|
print $langs->trans("PreviewOfSiteNotYetAvailable");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Security: Delete string ../ into $original_file
|
// Security: Delete string ../ into $original_file
|
||||||
global $dolibarr_main_data_root;
|
global $dolibarr_main_data_root;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user