Skip to content

Commit 222ceab

Browse files
committed
Update directories' path for the new architecture
1 parent e38b152 commit 222ceab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JSONDB/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function addUser($server, $username, $password)
6565
public function getConfig($filename)
6666
{
6767
if ($this->_exists($filename)) {
68-
return json_decode(file_get_contents(realpath( dirname(__DIR__) . "/config/{$filename}.json")), TRUE);
68+
return json_decode(file_get_contents(realpath(dirname(dirname(__DIR__)) . "/config/{$filename}.json")), TRUE);
6969
} else {
7070
$this->_writeConfig($filename, array());
7171
return array();
@@ -80,7 +80,7 @@ public function getConfig($filename)
8080
*/
8181
private function _writeConfig($filename, array $config)
8282
{
83-
return (bool)file_put_contents(realpath( dirname(__DIR__) . "/config/{$filename}.json"), json_encode($config));
83+
return (bool)file_put_contents(realpath(dirname(dirname(__DIR__)) . "/config/{$filename}.json"), json_encode($config));
8484
}
8585

8686
/**
@@ -90,6 +90,6 @@ private function _writeConfig($filename, array $config)
9090
*/
9191
private function _exists($filename)
9292
{
93-
return file_exists(realpath( dirname(__DIR__) . "/config/{$filename}.json"));
93+
return file_exists(realpath(dirname(dirname(__DIR__)) . "/config/{$filename}.json"));
9494
}
9595
}

0 commit comments

Comments
 (0)