Skip to content

Commit

Permalink
Events to log old widget load
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Apr 11, 2022
1 parent 427c928 commit ccb529f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lhc_web/modules/lhchat/getstatus.php
Expand Up @@ -87,6 +87,10 @@
exit;
}

erLhcoreClassChatEventDispatcher::getInstance()->dispatch('chat.getstatus_old',array(
'params' => & $Params,
));

$tpl->set('referrer',isset($_GET['r']) ? rawurldecode($_GET['r']) : '');
$tpl->set('track_online_users',erLhcoreClassModelChatConfig::fetch('track_online_visitors')->current_value == 1 && (string)$Params['user_parameters_unordered']['dot'] != 'true');
$tpl->set('disable_online_tracking',(string)$Params['user_parameters_unordered']['dot'] == 'true');
Expand Down
4 changes: 4 additions & 0 deletions lhc_web/modules/lhchat/getstatusembed.php
Expand Up @@ -71,6 +71,10 @@
exit;
}

erLhcoreClassChatEventDispatcher::getInstance()->dispatch('chat.getstatusembed_old',array(
'params' => & $Params,
));

$tpl = erLhcoreClassTemplate::getInstance('lhchat/getstatusembed.tpl.php');
$tpl->set('leaveamessage',(string)$Params['user_parameters_unordered']['leaveamessage'] == 'true');
$tpl->set('hide_offline',$Params['user_parameters_unordered']['hide_offline']);
Expand Down

0 comments on commit ccb529f

Please sign in to comment.