Code is simpler
This commit is contained in:
parent
42998bafb4
commit
e361db89d7
@ -70,10 +70,7 @@ function GETPOST($paramname,$check='',$method=0)
|
|||||||
*/
|
*/
|
||||||
function dol_include_once($relpath)
|
function dol_include_once($relpath)
|
||||||
{
|
{
|
||||||
$res=false;
|
return include_once(dol_buildpath($relpath));
|
||||||
$res=@include_once(DOL_DOCUMENT_ROOT.$relpath);
|
|
||||||
if (! $res && defined('DOL_DOCUMENT_ROOT_ALT')) $res=@include_once(DOL_DOCUMENT_ROOT_ALT.$relpath);
|
|
||||||
return $res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -83,14 +80,7 @@ function dol_include_once($relpath)
|
|||||||
*/
|
*/
|
||||||
function dol_require_once($relpath)
|
function dol_require_once($relpath)
|
||||||
{
|
{
|
||||||
$res=false;
|
return require_once(dol_buildpath($relpath));
|
||||||
|
|
||||||
// Forced to use file_exists otherwise there is a blank page
|
|
||||||
//$res=@require_once(DOL_DOCUMENT_ROOT.$relpath);
|
|
||||||
//if (! $res && defined('DOL_DOCUMENT_ROOT_ALT')) $res=@require_once(DOL_DOCUMENT_ROOT_ALT.$relpath);
|
|
||||||
$res=require_once(dol_buildpath($relpath));
|
|
||||||
|
|
||||||
return $res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user