We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bbcf0d commit 6155eb0Copy full SHA for 6155eb0
src/RestController.php
@@ -442,15 +442,13 @@ private function do_auth($method = false)
442
*/
443
private function get_local_config($config_file)
444
{
445
- if (file_exists(__DIR__.'/'.$config_file.'.php')) {
+ if (!$this->load->config($config_file, false))
446
+ {
447
$config = [];
448
include __DIR__.'/'.$config_file.'.php';
-
449
foreach ($config as $key => $value) {
450
$this->config->set_item($key, $value);
451
}
452
- } else {
453
- $this->load->config($config_file, false, true);
454
455
456
0 commit comments