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') {