"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "system/src/Grav/Common/Page/Markdown/Excerpts.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.

Excerpts.php  (grav-v1.6.25):Excerpts.php  (grav-v1.6.26)
skipping to change at line 90 skipping to change at line 90
$parts = explode('=', $item, 2); $parts = explode('=', $item, 2);
$value = isset($parts[1]) ? rawurldecode($parts[1]) : true; $value = isset($parts[1]) ? rawurldecode($parts[1]) : true;
$carry[$parts[0]] = $value; $carry[$parts[0]] = $value;
return $carry; return $carry;
}, },
[] []
); );
// Valid attributes supported. // Valid attributes supported.
$valid_attributes = ['rel', 'target', 'id', 'class', 'classes']; $valid_attributes = Grav::instance()['config']->get('system.pages.ma rkdown.valid_link_attributes');
// Unless told to not process, go through actions. // Unless told to not process, go through actions.
if (array_key_exists('noprocess', $actions)) { if (array_key_exists('noprocess', $actions)) {
unset($actions['noprocess']); unset($actions['noprocess']);
} else { } else {
// Loop through actions for the image and call them. // Loop through actions for the image and call them.
foreach ($actions as $attrib => $value) { foreach ($actions as $attrib => $value) {
$key = $attrib; $key = $attrib;
if (in_array($attrib, $valid_attributes, true)) { if (in_array($attrib, $valid_attributes, true)) {
 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)