rem: var parts = param.id.split("/"); if (parts.length == 2) { var blog = root.get(parts[0]); var poll = blog.polls.get(parts[1]); } else { var blog = path.site; var poll = blog.polls.get(param.id); } if (!poll) return(getMsg("error","pollNoExist",param.id)); var deny = poll.isVoteDenied(session.user); if (poll.closed || param.as == "results") poll.renderSkin("results"); else if (deny || param.as == "link") { openLink(poll.href()); res.write(poll.question); closeLink(); } else { res.data.action = poll.href(); poll.renderSkin("main"); } 
add: var parts = param.id.split("/"); if (parts.length == 2) { var blog = root.get(parts[0]); var poll = blog.polls.get(parts[1]); } else { var blog = path.site; var poll = blog.polls.get(param.id); } if (!poll) return(getMsg("error","pollNoExist",param.id)); var deny = poll.isVoteDenied(session.user); if (poll.closed || param.as == "results") poll.renderSkin("results"); else if (deny || param.as == "link") { openLink(poll.href()); res.write(poll.question); closeLink(); } else { res.data.action = poll.href(); poll.renderSkin("main"); } 
context: function poll_macro(param) {  var parts = param.id.split("/");  if (parts.length == 2) {    var blog = root.get(parts[0]);    var poll = blog.polls.get(parts[1]);  }  else {    var blog = path.site;    var poll = blog.polls.get(param.id);  }  if (!poll)    return(getMsg("error","pollNoExist",param.id));  var deny = poll.isVoteDenied(session.user);  if (poll.closed || param.as == "results")    poll.renderSkin("results");  else if (deny || param.as == "link") {    openLink(poll.href());    res.write(poll.question);    closeLink();  }  else {    res.data.action = poll.href();    poll.renderSkin("main");  }}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/59b9e4558a6020aea0be7158ca6d64256a1f0ed8/macros.js/buggy/code/Global/macros.js