Skip to content

Commit ee8e9e6

Browse files
committed
Refactoring.
1 parent 8e4bf7a commit ee8e9e6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Web.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Upload handler (last modified: 2021.08.25).
11+
* This file: Upload handler (last modified: 2021.09.05).
1212
*/
1313

1414
namespace phpMussel\Web;
@@ -72,11 +72,9 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
7272
$Configuration = $this->Loader->readFile($this->AssetsPath . 'config.yml')
7373
) {
7474
$Defaults = [];
75-
$this->Loader->YAML->process($Configuration, $Defaults, 0, true);
76-
if (isset($Defaults)) {
77-
$this->Loader->fallback($Defaults);
78-
$this->Loader->ConfigurationDefaults = array_merge_recursive($this->Loader->ConfigurationDefaults, $Defaults);
79-
}
75+
$this->Loader->YAML->process($Configuration, $Defaults);
76+
$this->Loader->fallback($Defaults);
77+
$this->Loader->ConfigurationDefaults = array_merge_recursive($this->Loader->ConfigurationDefaults, $Defaults);
8078
}
8179

8280
/** Register log paths. */

0 commit comments

Comments
 (0)