mirror of
https://github.com/Mibew/java.git
synced 2025-01-23 01:50:34 +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) {
|
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') {
|
||||||
|
Loading…
Reference in New Issue
Block a user