From 73666cc4fcca698c30b7148f098b478d3b8812af Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Wed, 22 Aug 2007 20:32:23 +0000 Subject: [PATCH] 1.0.7 RC3 (fix company name & logo in user window) git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@20 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/pack.bat | 3 +++ src/webim/libs/chat.php | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 src/pack.bat diff --git a/src/pack.bat b/src/pack.bat new file mode 100644 index 00000000..7dac15d1 --- /dev/null +++ b/src/pack.bat @@ -0,0 +1,3 @@ +rmdir /q/s deploy +mkdir deploy +xcopy webim deploy\ /s/q diff --git a/src/webim/libs/chat.php b/src/webim/libs/chat.php index 3f154cb3..ee7547b7 100644 --- a/src/webim/libs/chat.php +++ b/src/webim/libs/chat.php @@ -157,7 +157,7 @@ function get_user_name($name, $id="") { } function setup_chatview_for_user($thread,$level) { - global $page, $webimroot, $user_can_change_name; + global $page, $webimroot, $user_can_change_name, $company_logo_link, $company_name; $page = array(); $page['agent'] = false; $page['user'] = true; @@ -171,8 +171,8 @@ function setup_chatview_for_user($thread,$level) { $page['ct.user.name'] = $thread['userName']; $page['canChangeName'] = $user_can_change_name; - $page['ct.company.name'] = "Test company"; // TODO - $page['ct.company.chatLogoURL'] = ""; // TODO + $page['ct.company.name'] = $company_name; + $page['ct.company.chatLogoURL'] = $company_logo_link; $params = "thread=".$thread['threadid']."&token=".$thread['ltoken']; $page['selfLink'] = "$webimroot/client.php?".$params."&level=".$level;