fix export des config

This commit is contained in:
Gregory Letellier
2023-11-15 09:27:27 +01:00
parent 6363ad1b4d
commit 01e9fd2de3

View File

@@ -20,7 +20,7 @@ class Config
if (isset($this->container["DEBUG"])) {
if (($this->container["DEBUG"] == "false") && !is_file($this->cachepath)) {
// production app cache not created
$str = "<?php return " . json_encode(array_values($this->container)) . "; ?>";
$str = "<?php return " . var_export($this->container, true) . "; ?>";
file_put_contents($this->cachepath, $str);
}
}