Commit a54155de authored by RenatoG's avatar RenatoG Committed by frjo

Issue #2862105 by renatog: Fixed wrong variable in calculateDependencies

parent 23e97950
......@@ -387,7 +387,7 @@ class ColorboxFormatter extends ImageFormatterBase implements ContainerFactoryPl
$dependencies = parent::calculateDependencies();
$style_ids = [];
$style_ids[] = $this->getSetting('colorbox_node_style');
if (!empty($settings['colorbox_node_style_first'])) {
if (!empty($this->getSetting('colorbox_node_style_first'))) {
$style_ids[] = $this->getSetting('colorbox_node_style_first');
}
$style_ids[] = $this->getSetting('colorbox_image_style');
......@@ -409,7 +409,7 @@ class ColorboxFormatter extends ImageFormatterBase implements ContainerFactoryPl
$changed = parent::onDependencyRemoval($dependencies);
$style_ids = [];
$style_ids['colorbox_node_style'] = $this->getSetting('colorbox_node_style');
if (!empty($settings['colorbox_node_style_first'])) {
if (!empty($this->getSetting('colorbox_node_style_first'))) {
$style_ids['colorbox_node_style_first'] = $this->getSetting('colorbox_node_style_first');
}
$style_ids['colorbox_image_style'] = $this->getSetting('colorbox_image_style');
......
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