Обертка для file_get_contents

This commit is contained in:
CORP\phedor 2018-02-14 11:03:43 +03:00
parent bfd53ecc09
commit 0d92ebad86
5 changed files with 17 additions and 6 deletions

View file

@ -167,7 +167,7 @@ class Controller_Component
function getInfo() {
$filename = Path::join($this->viewPath[0], 'install.json');
if (file_exists($filename)) {
$settings = json_decode(file_get_contents($filename), true);
$settings = json_decode(File::getContents($filename), true);
return $settings;
}
return array();