From 2c9e65b518a2b6251ce86eb4970392cdaedd162a Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 18 Feb 2013 12:59:50 +0000 Subject: [PATCH] Use 'company.*' vars instead of 'ct.company.*' in tempates --- src/messenger/webim/libs/chat.php | 14 ++++++++------ .../styles/dialogs/default/templates/chat.tpl | 10 +++++----- .../styles/dialogs/default/templates/error.tpl | 10 +++++----- .../dialogs/default/templates/leavemessage.tpl | 10 +++++----- .../dialogs/default/templates/leavemessagesent.tpl | 10 +++++----- .../styles/dialogs/default/templates/mail.tpl | 10 +++++----- .../styles/dialogs/default/templates/mailsent.tpl | 10 +++++----- .../styles/dialogs/default/templates/nochat.tpl | 10 +++++----- .../styles/dialogs/default/templates/redirect.tpl | 10 +++++----- .../dialogs/default/templates/redirected.tpl | 10 +++++----- .../styles/dialogs/default/templates/survey.tpl | 10 +++++----- 11 files changed, 58 insertions(+), 56 deletions(-) diff --git a/src/messenger/webim/libs/chat.php b/src/messenger/webim/libs/chat.php index 36aaa232..0f586e0e 100644 --- a/src/messenger/webim/libs/chat.php +++ b/src/messenger/webim/libs/chat.php @@ -139,13 +139,15 @@ function setup_logo($group = NULL) { $toplevelgroup = (!$group)?array():get_top_level_group($group); - $data['ct.company.name'] = topage(empty($toplevelgroup['vctitle']) - ? Settings::get('title') - : $toplevelgroup['vctitle']); + $data['company'] = array( + 'name' => topage(empty($toplevelgroup['vctitle']) + ? Settings::get('title') + : $toplevelgroup['vctitle']), - $data['ct.company.chatLogoURL'] = topage(empty($toplevelgroup['vclogo']) - ? Settings::get('logo') - : $toplevelgroup['vclogo']); + 'chatLogoURL' => topage(empty($toplevelgroup['vclogo']) + ? Settings::get('logo') + : $toplevelgroup['vclogo']) + ); $data['webimHost'] = topage(empty($toplevelgroup['vchosturl']) ? Settings::get('hosturl') diff --git a/src/messenger/webim/styles/dialogs/default/templates/chat.tpl b/src/messenger/webim/styles/dialogs/default/templates/chat.tpl index eb323056..913f8313 100644 --- a/src/messenger/webim/styles/dialogs/default/templates/chat.tpl +++ b/src/messenger/webim/styles/dialogs/default/templates/chat.tpl @@ -108,15 +108,15 @@