From cf67b112953543baac9b44b40c42bdd8b4a14b71 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 22 Mar 2021 22:41:26 +0300 Subject: [PATCH] Fix issue with double widget code in generated button --- .../libs/classes/Mibew/Button/Generator/ImageGenerator.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mibew/libs/classes/Mibew/Button/Generator/ImageGenerator.php b/src/mibew/libs/classes/Mibew/Button/Generator/ImageGenerator.php index b77049db..b62246d1 100644 --- a/src/mibew/libs/classes/Mibew/Button/Generator/ImageGenerator.php +++ b/src/mibew/libs/classes/Mibew/Button/Generator/ImageGenerator.php @@ -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;