"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "system/src/Grav/Framework/Flex/Storage/SimpleStorage.php" between
grav-v1.7.17.zip and grav-v1.7.18.zip

About: Grav is a fast, simple, and flexible flat-file based CMS platform (using YAML and PHP). Contents are just simple markdown files in folders with optional extensions via API and hooks.

SimpleStorage.php  (grav-v1.7.17):SimpleStorage.php  (grav-v1.7.18)
skipping to change at line 458 skipping to change at line 458
return []; return [];
} }
$file = $this->getFile($path); $file = $this->getFile($path);
$this->modified = (int)$file->modified(); // cast false to 0 $this->modified = (int)$file->modified(); // cast false to 0
$content = (array) $file->content(); $content = (array) $file->content();
if ($this->prefix) { if ($this->prefix) {
$data = new Data($content); $data = new Data($content);
$content = $data->get($this->prefix); $content = $data->get($this->prefix, []);
} }
$file->free(); $file->free();
unset($file); unset($file);
$this->data = $content; $this->data = $content;
$list = []; $list = [];
foreach ($this->data as $key => $info) { foreach ($this->data as $key => $info) {
$list[$key] = $this->getObjectMeta((string)$key); $list[$key] = $this->getObjectMeta((string)$key);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)