diff --git a/class/db.php b/class/db.php index cd2ca00..df1c118 100644 --- a/class/db.php +++ b/class/db.php @@ -12,9 +12,9 @@ class db extends mysqli function __construct() { - global $testMode, $confDir; + global $testMode, $configDir; - require_once $confDir . "/dbConfig.php"; + require_once $configDir . "/dbConfig.php"; $flagError = false; if ($testMode) { diff --git a/hooks/scripts/rdc_store.php b/hooks/scripts/rdc_store.php index f3d6eeb..c9b97c6 100644 --- a/hooks/scripts/rdc_store.php +++ b/hooks/scripts/rdc_store.php @@ -164,7 +164,7 @@ class rdc_store extends hook { $store2level = $this->storeLevel + 20; } - }elseif ($exterieurLuxMoyen < 5000 and $salon_lux < 200 and $soleil < 100 and $facadeLuxMoyen < 8000) + }elseif ($exterieurLuxMoyen < 5000 and $salon_lux < 200 and $soleil < 100 and $facadeLuxMoyen < 10000) { logger(DEBUG, "exterieurLuxMoyen < 5000 and salon_lux < 200 and soleil < 100", __FILE__ . ":" . __LINE__); $this->close("Luminosité faible");