Fix issue with double widget code in generated button

This commit is contained in:
Fedor A. Fetisov 2021-03-22 22:41:26 +03:00
parent dd4169f815
commit cf67b11295

View File

@ -56,9 +56,6 @@ class ImageGenerator extends TextGenerator
$button = HTML5\html('fragment');
$button->addChild(HTML5\html('comment', 'mibew button'));
$button->addChild($this->getPopupLink($image));
if (Settings::get('enabletracking') && !$this->getOption('disable_tracking')) {
$button->addChild($this->getWidgetCode());
}
$button->addChild(HTML5\html('comment', '/ mibew button'));
return $button;