From cf63af7847bbfe8e4e56f3da693c442967b09c07 Mon Sep 17 00:00:00 2001 From: Guillermo Dev Date: Tue, 9 Oct 2018 01:40:22 +0200 Subject: [PATCH] change config file location to root --- Lib/Configuration.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/Configuration.php b/Lib/Configuration.php index c2d50fa..6421c1a 100644 --- a/Lib/Configuration.php +++ b/Lib/Configuration.php @@ -59,14 +59,14 @@ class Configuration { // by default, set the session save path to the default value; $this->values['session']['save_path'] = session_save_path(); - if(!file_exists($this->custom_config)) { + if(!file_exists($this->custom_config_filename)) { throw new \RuntimeException('No configuration.local.php file was found. Create it with the proper config.'); } - - $configuration = include_once $this->custom_config; + + $configuration = include_once realpath(dirname(__FILE__) . '/../') . $this->custom_config_filename; if(!is_array($configuration)) { - throw new \RuntimeException("You custom configuration in '{$this->custom_config}' must be in a variable named '\$configuration' and be an array."); + throw new \RuntimeException("You custom configuration in '{$this->custom_config_filename}' must be in a variable named '\$configuration' and be an array."); } $this->values = array_replace_recursive($this->values, $configuration);