Fix constant() need the string name of a constant to return value of

This commit is contained in:
Laurent Destailleur 2016-01-14 11:17:47 +01:00
parent 0f5e208127
commit 89fad007b4

View File

@ -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';