check for prototype root or Root in hrefRoot_macro

This commit is contained in:
stefanp 2004-04-13 15:40:27 +00:00
parent f1ab90effd
commit af52a36f3d

View file

@ -39,6 +39,9 @@ function headline_macro (param) {
function hrefRoot_macro (param) {
var obj = this.getChildElement ("prototype_root");
if (obj == null) {
var obj = this.getChildElement ("prototype_Root");
}
if (obj!=null) {
var action = (param.action) ? param.action : "main";
return obj.href (action);