mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 16:44:11 +03:00
Fix bug with send chat history to email
This commit is contained in:
parent
29dd1e8c72
commit
94815071c0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user