Can retreive main global variables
This commit is contained in:
parent
f0f9e5fb53
commit
ad39aa9b70
@ -91,7 +91,8 @@ function dol_getprefix()
|
||||
*/
|
||||
function dol_include_once($relpath)
|
||||
{
|
||||
return include_once(dol_buildpath($relpath));
|
||||
global $conf,$langs,$user,$mysoc; // Other global var must be retreived with $GLOBALS['var']
|
||||
return include_once(dol_buildpath($relpath));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -101,7 +102,8 @@ function dol_include_once($relpath)
|
||||
*/
|
||||
function dol_require_once($relpath)
|
||||
{
|
||||
return require_once(dol_buildpath($relpath));
|
||||
global $conf,$langs,$user,$mysoc; // Other global var must be retreived with $GLOBALS['var']
|
||||
return require_once(dol_buildpath($relpath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user