Fix bug with send chat history to email

This commit is contained in:
Dmitriy Simushev 2014-01-17 10:15:49 +00:00
parent 29dd1e8c72
commit 94815071c0

View File

@ -54,9 +54,9 @@ if (get_remote_level($_SERVER['HTTP_USER_AGENT']) == 'old') {
exit; exit;
} }
if (verifyparam("act", "/^(invitation)$/", "default") == 'invitation' $action = verifyparam("act", "/^(invitation|mailthread)$/", "default");
&& Settings::get('enabletracking')
) { if ($action == 'invitation' && Settings::get('enabletracking')) {
// Check if user invited to chat // Check if user invited to chat
$invitation_state = invitation_state($_SESSION['visitorid']); $invitation_state = invitation_state($_SESSION['visitorid']);
@ -188,8 +188,7 @@ if (! $thread) {
$page = setup_chatview_for_user($thread); $page = setup_chatview_for_user($thread);
$pparam = verifyparam( "act", "/^(mailthread)$/", "default"); if($action == "mailthread") {
if( $pparam == "mailthread" ) {
$chat_style->render('mail', $page); $chat_style->render('mail', $page);
} else { } else {
// Build js application options // Build js application options