Обертка для file_get_contents
This commit is contained in:
parent
bfd53ecc09
commit
0d92ebad86
5 changed files with 17 additions and 6 deletions
|
|
@ -32,7 +32,7 @@ class Settings extends Collection
|
|||
// Не include_once т.к читать настройки можно несколько раз
|
||||
$settings = array();
|
||||
if ($this->format == 'json') {
|
||||
$settings = json_decode(file_get_contents($this->file), true);
|
||||
$settings = json_decode(File::getContents($this->file), true);
|
||||
} else {
|
||||
include ($this->file);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue