Обертка для file_get_contents
This commit is contained in:
parent
bfd53ecc09
commit
0d92ebad86
5 changed files with 17 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue