Skip to content

Commit acfba41

Browse files
committed
Fix loading config params
1 parent 3c3a943 commit acfba41

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: src/I18n.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,15 @@ class I18n
3535
*/
3636
public function __construct(array $config)
3737
{
38+
if (isset($config['path'])) {
39+
$this->setPath($config['path']);
40+
}
3841
if (isset($config['languages'])) {
3942
$this->setLanguages($config['languages']);
4043
}
4144
if (isset($config['language'])) {
4245
$this->setLanguage($config['language']);
4346
}
44-
if (isset($config['path'])) {
45-
$this->setPath($config['path']);
46-
}
47-
$this->include();
4847
}
4948

5049
/**

0 commit comments

Comments
 (0)