Skip to content

Commit

Permalink
Fix load of CSS using dolibarr server
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 19, 2019
1 parent e8db3a2 commit fea34fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions htdocs/public/website/styles.css.php
Expand Up @@ -82,21 +82,26 @@ function llxFooter()
{
$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)
{
$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;
Expand Down

0 comments on commit fea34fa

Please sign in to comment.