"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "system/src/Grav/Common/Plugin.php" between
grav-v1.6.25.zip and grav-v1.6.26.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.

Plugin.php  (grav-v1.6.25):Plugin.php  (grav-v1.6.26)
skipping to change at line 308 skipping to change at line 308
$config = $page_header->{$class_name}; $config = $page_header->{$class_name};
if (\is_bool($config)) { if (\is_bool($config)) {
// Overwrite enabled option with boolean value in page header // Overwrite enabled option with boolean value in page header
$config = ['enabled' => $config]; $config = ['enabled' => $config];
} }
// Merge page header settings using deep or shallow merging techniqu e // Merge page header settings using deep or shallow merging techniqu e
$header = $this->mergeArrays($deep, $defaults, $config); $header = $this->mergeArrays($deep, $defaults, $config);
// Create new config object and set it on the page object so it's ca ched for next time // Create new config object and set it on the page object so it's ca ched for next time
$page->modifyHeader($class_name_merged, new Data($header)); $page->modifyHeader($class_name_merged, new Data($header));
} else if (isset($page_header->{$class_name_merged})) { } elseif (isset($page_header->{$class_name_merged})) {
$merged = $page_header->{$class_name_merged}; $merged = $page_header->{$class_name_merged};
$header = $merged->toArray(); $header = $merged->toArray();
} }
if (empty($header)) { if (empty($header)) {
$header = $defaults; $header = $defaults;
} }
// Merge additional parameter with configuration options // Merge additional parameter with configuration options
$header = $this->mergeArrays($deep, $header, $params); $header = $this->mergeArrays($deep, $header, $params);
// Return configurations as a new data config class // Return configurations as a new data config class
 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)