diff --git a/src/messenger/webim/client.php b/src/messenger/webim/client.php index 428a6fa7..d8831db1 100644 --- a/src/messenger/webim/client.php +++ b/src/messenger/webim/client.php @@ -47,7 +47,9 @@ if (get_remote_level($_SERVER['HTTP_USER_AGENT']) == 'old') { exit; } -if (verifyparam("act", "/^(invitation)$/", "default") == 'invitation') { +if (verifyparam("act", "/^(invitation)$/", "default") == 'invitation' + && Settings::get('enabletracking') +) { // Check if user invited to chat $invitation_state = invitation_state($_SESSION['visitorid']); diff --git a/src/messenger/webim/js/compiled/widget.js b/src/messenger/webim/js/compiled/widget.js index 6df019f3..7141a5d2 100644 --- a/src/messenger/webim/js/compiled/widget.js +++ b/src/messenger/webim/js/compiled/widget.js @@ -13,5 +13,5 @@ this.loadScript(f));for(var h in b)b.hasOwnProperty(h)&&(h in this.handlersDepen a.Widget.prototype.loadScript=function(b){var c=this,a=this.doLoadScript(this.requestedScripts[b].url,b);a.onload=function(){c.scriptReady(b)};a.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&c.scriptReady(b)}};a.Widget.prototype.doLoadScript=function(b,c){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src",b);a.setAttribute("id",c);document.getElementsByTagName("head")[0].appendChild(a);return a};a.Widget.prototype.scriptReady= function(b){this.requestedScripts[b].status="ready";for(var a in this.handlers)this.handlers.hasOwnProperty(a)&&this.canRunHandler(a)&&(this.handlers[a](),delete this.handlers[a])};a.Widget.prototype.canRunHandler=function(b){b=this.handlersDependences[b];for(var a=0;a