summaryrefslogtreecommitdiff
path: root/libs/Utils
diff options
context:
space:
mode:
Diffstat (limited to 'libs/Utils')
-rw-r--r--libs/Utils/Config.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/Utils/Config.class.php b/libs/Utils/Config.class.php
index 8111b32..a332b91 100644
--- a/libs/Utils/Config.class.php
+++ b/libs/Utils/Config.class.php
@@ -7,7 +7,7 @@ class Config
public function __construct()
{
- $this->file = $_SERVER['DOCUMENT_ROOT'].'/esm.config.json';
+ $this->file = __DIR__.'/../../esm.config.json';
if (file_exists($this->file))
$this->_readFile();
@@ -16,7 +16,7 @@ class Config
private function _readFile()
{
$content = file_get_contents($this->file);
- $this->config = json_decode($content, true);
+ $this->config = json_decode(utf8_encode($content), true);
}