Skip to content

Commit

Permalink
FIX custom CSS for WebPortal (#31022)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvessiller-opendsi authored and eldy committed Sep 19, 2024
1 parent ed8560c commit dbd0412
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions htdocs/public/webportal/css/themes/custom.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@

session_cache_limiter('public');

if (!defined('MAIN_INC_REL_DIR')) {
define('MAIN_INC_REL_DIR', '../../');
}
require_once __DIR__.'/../../webportal.main.inc.php';
dol_include_once('/webportal/class/webPortalTheme.class.php');

Expand Down
7 changes: 5 additions & 2 deletions htdocs/public/webportal/webportal.main.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ function dol_getprefix($mode = '')
}
}


include '../../main.inc.php';
$relDir = '';
if (defined('MAIN_INC_REL_DIR')) {
$relDir = MAIN_INC_REL_DIR;
}
include $relDir.'../../main.inc.php';

require_once DOL_DOCUMENT_ROOT . '/user/class/user.class.php';
require_once DOL_DOCUMENT_ROOT . '/societe/class/societeaccount.class.php';
Expand Down

0 comments on commit dbd0412

Please sign in to comment.