From 8dfcdaa0f0adee802907c7694edeb86e9c7c8f3a Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Tue, 15 Nov 2016 12:46:34 -0500 Subject: [PATCH] Handle changing language on view ticket page --- inc/common.inc.php | 10 +++++++++- inc/header.inc.php | 8 +++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/inc/common.inc.php b/inc/common.inc.php index b12359ad..92989b15 100644 --- a/inc/common.inc.php +++ b/inc/common.inc.php @@ -1030,7 +1030,7 @@ function hesk_showTopBar($page_title) echo $page_title; } // END hesk_showTopBar() -function hesk_getLanguagesAsFormIfNecessary() +function hesk_getLanguagesAsFormIfNecessary($trackingID = false) { global $hesk_settings, $hesklang; @@ -1039,6 +1039,14 @@ function hesk_getLanguagesAsFormIfNecessary() $str = '
'; + if ($trackingID !== false) { + $str .= ''; + + if ($hesk_settings['email_view_ticket'] && isset($hesk_settings['e_email'])) { + $str .= ''; + } + } + if (!isset($_GET)) { $_GET = array(); } diff --git a/inc/header.inc.php b/inc/header.inc.php index 1d03dd02..cefb2cc9 100644 --- a/inc/header.inc.php +++ b/inc/header.inc.php @@ -333,7 +333,13 @@ if ($modsForHesk_settings['show_icons']) {