Fix constant() need the string name of a constant to return value of
This commit is contained in:
parent
0f5e208127
commit
89fad007b4
@ -176,7 +176,7 @@ if (preg_match('/install.lock/i',$_SERVER["SCRIPT_FILENAME"]))
|
|||||||
}
|
}
|
||||||
|
|
||||||
$lockfile = DOL_DATA_ROOT . '/install.lock';
|
$lockfile = DOL_DATA_ROOT . '/install.lock';
|
||||||
if (constant(DOL_DATA_ROOT) === null) {
|
if (constant('DOL_DATA_ROOT') === null) {
|
||||||
// We don't have a configuration file yet
|
// We don't have a configuration file yet
|
||||||
// Try to detect any lockfile in the default documents path
|
// Try to detect any lockfile in the default documents path
|
||||||
$lockfile = '../../documents/install.lock';
|
$lockfile = '../../documents/install.lock';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user