changed sys_frontSite_macro() because root.sys_frontSite now contains the site-object instead of just the alias
This commit is contained in:
parent
df15c3e76e
commit
1e122ec3b4
1 changed files with 6 additions and 3 deletions
|
@ -290,9 +290,12 @@ function shortdateformat_macro(param) {
|
||||||
function sys_frontSite_macro(param) {
|
function sys_frontSite_macro(param) {
|
||||||
if (!isUserSysAdmin())
|
if (!isUserSysAdmin())
|
||||||
return;
|
return;
|
||||||
if (param.as == "editor")
|
if (param.as == "editor") {
|
||||||
renderInputText(this.createInputParam("sys_frontSite",param));
|
var inputParam = new Object();
|
||||||
else
|
inputParam.name = "sys_frontSite";
|
||||||
|
inputParam.value = root.sys_frontSite ? root.sys_frontSite.alias : null;
|
||||||
|
renderInputText(inputParam);
|
||||||
|
} else
|
||||||
res.write (root.sys_frontSite);
|
res.write (root.sys_frontSite);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue