changed sys_frontSite_macro() because root.sys_frontSite now contains the site-object instead of just the alias

This commit is contained in:
Robert Gaggl 2002-12-02 16:25:56 +00:00
parent df15c3e76e
commit 1e122ec3b4

View file

@ -290,9 +290,12 @@ function shortdateformat_macro(param) {
function sys_frontSite_macro(param) {
if (!isUserSysAdmin())
return;
if (param.as == "editor")
renderInputText(this.createInputParam("sys_frontSite",param));
else
if (param.as == "editor") {
var inputParam = new Object();
inputParam.name = "sys_frontSite";
inputParam.value = root.sys_frontSite ? root.sys_frontSite.alias : null;
renderInputText(inputParam);
} else
res.write (root.sys_frontSite);
return;
}