Fix button generation with disabled visitors tracking

This commit is contained in:
Fedor A. Fetisov 2014-12-10 19:48:34 +03:00
parent 3e5f589972
commit 304de4ab71

View File

@ -85,7 +85,9 @@ class ImageGenerator extends TextGenerator
$button = HTML5\html('fragment');
$button->addChild(HTML5\html('comment', 'mibew button'));
$button->addChild($this->getPopup($image));
$button->addChild($this->getWidgetCode());
if (Settings::get('enabletracking')) {
$button->addChild($this->getWidgetCode());
}
$button->addChild(HTML5\html('comment', '/ mibew button'));
return $button;