Correction du DOL_URL_ROOT

This commit is contained in:
Rodolphe Quiedeville 2003-06-18 16:32:23 +00:00
parent d799382098
commit 945e7f209b

View File

@ -37,8 +37,11 @@ if (strtolower(substr($dolibarr_main_url_root, 0, 7)) == 'https:/')
{
$uri = substr($dolibarr_main_url_root, 8);
}
$pos = substr(strstr ($uri, '/'), 1);
$pos = strstr ($uri, '/');
if ($pos == '/')
{
$pos = '';
}
define('DOL_URL_ROOT', $pos);
require (DOL_DOCUMENT_ROOT."/conf/conf.class.php3");