changed doWikiStuff: now querying for res.handlers.site instead of path.site (although this function isn't in use)

This commit is contained in:
Robert Gaggl 2002-12-02 16:29:29 +00:00
parent eabe06d1ef
commit c65644b73e

View file

@ -282,11 +282,11 @@ function doWikiStuff (src) {
if (found == null)
break;
var name = ""+(new java.lang.String (found[1])).trim();
var item = path.site.topics.get (name);
var item = res.handlers.site.topics.get (name);
if (item == null && name.lastIndexOf("s") == name.length-1)
item = path.site.topics.get (name.substring(0, name.length-1));
item = res.handlers.site.topics.get (name.substring(0, name.length-1));
if (item == null || !item.size())
text += format(name)+" <small>[<a href=\""+path.site.stories.href("create")+"?topic="+escape(name)+"\">define "+format(name)+"</a>]</small>";
text += format(name)+" <small>[<a href=\""+res.handlers.site.stories.href("create")+"?topic="+escape(name)+"\">define "+format(name)+"</a>]</small>";
else
text += "<a href=\""+item.href()+"\">"+name+"</a>";
start += found.index + found[1].length+4;