From 04a584ffabb490cc8a062080b87dbcd3c43b538b Mon Sep 17 00:00:00 2001
From: Evgeny Gryaznov <inspirer@users.sourceforge.net>
Date: Tue, 11 Aug 2009 09:45:44 +0000
Subject: [PATCH] jsver variable in tpl support

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@619 c66351dc-e62f-0410-b875-e3a5c0b9693f
---
 src/messenger/webim/libs/expand.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/messenger/webim/libs/expand.php b/src/messenger/webim/libs/expand.php
index 27f6c0a9..86c16c8b 100644
--- a/src/messenger/webim/libs/expand.php
+++ b/src/messenger/webim/libs/expand.php
@@ -43,12 +43,14 @@ function expand_condition($matches) {
 }
 
 function expand_var($matches) {
-	global $page, $webimroot, $errors, $current_style;
+	global $page, $webimroot, $jsver, $errors, $current_style;
 	$prefix = $matches[1];
 	$var = $matches[2];
 	if(!$prefix) {
 		if($var == 'webimroot') {
 			return $webimroot;
+		} else if($var == 'jsver') {
+			return $jsver;
 		} else if($var == 'tplroot') {
 			return "$webimroot/styles/$current_style";
 		} else if($var == 'styleid') {