mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
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:
parent
997e6d81ab
commit
04a584ffab
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user