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' => '' - ) - ); + )); } }