From 0d59825faa30c78b52774cb93b0f5240a46b0952 Mon Sep 17 00:00:00 2001 From: Mladen Mijatov Date: Tue, 4 Jul 2017 16:22:50 +0200 Subject: [PATCH] Callbox: Fixed issue with code optimizer. --- modules/callbox/callbox.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/callbox/callbox.php b/modules/callbox/callbox.php index 7f3af922d..a004d5c95 100644 --- a/modules/callbox/callbox.php +++ b/modules/callbox/callbox.php @@ -52,18 +52,17 @@ protected function __construct() { $backend->addMenu($this->name, $callbox_menu); } + // include scripts if (ModuleHandler::is_loaded('head_tag') && $section != 'backend' && $this->settings['include_code']) { $head_tag = head_tag::get_instance(); - $url = str_replace('{id}', $this->settings['account_id'], '//{id}.tctm.co/t.js'); - $head_tag->addTag( - 'script', + $url = str_replace('{id}', $this->settings['account_id'], 'https://{id}.tctm.co/t.js'); + $head_tag->addTag('script', array( 'src' => $url, 'type' => 'text/javascript', 'async' => '' - ) - ); + )); } }