Commit 50840c0c authored by frjo's avatar frjo
Browse files

Issue #2626466 by gausarts, Jon-Snow: Notice: Undefined index:...

Issue #2626466 by gausarts, Jon-Snow: Notice: Undefined index: theme_hook_original in twig_render_template()
parent a2de7319
...@@ -30,7 +30,6 @@ function template_preprocess_colorbox_formatter(&$variables) { ...@@ -30,7 +30,6 @@ function template_preprocess_colorbox_formatter(&$variables) {
$item_attributes = isset($variables['item_attributes']) ? $variables['item_attributes'] : array(); $item_attributes = isset($variables['item_attributes']) ? $variables['item_attributes'] : array();
$entity = $variables['entity']; $entity = $variables['entity'];
$settings = $variables['settings']; $settings = $variables['settings'];
$variables = array(); // Reset the $variables parameter.
$image_uri = $item->entity->getFileUri(); $image_uri = $item->entity->getFileUri();
$classes_array = array('colorbox'); $classes_array = array('colorbox');
...@@ -172,7 +171,6 @@ function template_preprocess_colorbox_formatter(&$variables) { ...@@ -172,7 +171,6 @@ function template_preprocess_colorbox_formatter(&$variables) {
} }
} }
$variables['attributes'] = new Attribute();
$variables['attributes']['title'] = $caption; $variables['attributes']['title'] = $caption;
$variables['attributes']['rel'] = $gallery_id; $variables['attributes']['rel'] = $gallery_id;
$variables['attributes']['class'] = $classes_array; $variables['attributes']['class'] = $classes_array;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment