FIX custom CSS for WebPortal (#31022)

This commit is contained in:
lvessiller-opendsi 2024-09-20 00:50:25 +02:00 committed by Laurent Destailleur
parent ed8560ca07
commit dbd0412079
2 changed files with 8 additions and 2 deletions

View File

@ -45,6 +45,9 @@ if (!defined('NOREQUIREAJAX')) {
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');

View File

@ -76,8 +76,11 @@ if (!function_exists('dol_getprefix')) {
}
}
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';