fix export des config
This commit is contained in:
@@ -20,7 +20,7 @@ class Config
|
|||||||
if (isset($this->container["DEBUG"])) {
|
if (isset($this->container["DEBUG"])) {
|
||||||
if (($this->container["DEBUG"] == "false") && !is_file($this->cachepath)) {
|
if (($this->container["DEBUG"] == "false") && !is_file($this->cachepath)) {
|
||||||
// production app cache not created
|
// 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);
|
file_put_contents($this->cachepath, $str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user