jsver variable in tpl support

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@619 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-08-11 09:45:44 +00:00
parent 997e6d81ab
commit 04a584ffab

View File

@ -43,12 +43,14 @@ function expand_condition($matches) {
} }
function expand_var($matches) { function expand_var($matches) {
global $page, $webimroot, $errors, $current_style; global $page, $webimroot, $jsver, $errors, $current_style;
$prefix = $matches[1]; $prefix = $matches[1];
$var = $matches[2]; $var = $matches[2];
if(!$prefix) { if(!$prefix) {
if($var == 'webimroot') { if($var == 'webimroot') {
return $webimroot; return $webimroot;
} else if($var == 'jsver') {
return $jsver;
} else if($var == 'tplroot') { } else if($var == 'tplroot') {
return "$webimroot/styles/$current_style"; return "$webimroot/styles/$current_style";
} else if($var == 'styleid') { } else if($var == 'styleid') {