mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-12 10:31:09 +03:00
Merge pull request #84 from Mibew/button_fix
Fix button generation with disabled visitors tracking
This commit is contained in:
commit
db7aa3d12a
@ -85,7 +85,9 @@ class ImageGenerator extends TextGenerator
|
|||||||
$button = HTML5\html('fragment');
|
$button = HTML5\html('fragment');
|
||||||
$button->addChild(HTML5\html('comment', 'mibew button'));
|
$button->addChild(HTML5\html('comment', 'mibew button'));
|
||||||
$button->addChild($this->getPopup($image));
|
$button->addChild($this->getPopup($image));
|
||||||
$button->addChild($this->getWidgetCode());
|
if (Settings::get('enabletracking')) {
|
||||||
|
$button->addChild($this->getWidgetCode());
|
||||||
|
}
|
||||||
$button->addChild(HTML5\html('comment', '/ mibew button'));
|
$button->addChild(HTML5\html('comment', '/ mibew button'));
|
||||||
|
|
||||||
return $button;
|
return $button;
|
||||||
|
Loading…
Reference in New Issue
Block a user