Skip to content

Commit

Permalink
Callbox: Fixed issue with code optimizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeanEYE committed Jul 4, 2017
1 parent c6ed9d6 commit 0d59825
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/callbox/callbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => ''
)
);
));
}
}

Expand Down

0 comments on commit 0d59825

Please sign in to comment.