changed doWikiStuff: now querying for res.handlers.site instead of path.site (although this function isn't in use)
This commit is contained in:
parent
eabe06d1ef
commit
c65644b73e
1 changed files with 3 additions and 3 deletions
|
@ -282,11 +282,11 @@ function doWikiStuff (src) {
|
||||||
if (found == null)
|
if (found == null)
|
||||||
break;
|
break;
|
||||||
var name = ""+(new java.lang.String (found[1])).trim();
|
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)
|
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())
|
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
|
else
|
||||||
text += "<a href=\""+item.href()+"\">"+name+"</a>";
|
text += "<a href=\""+item.href()+"\">"+name+"</a>";
|
||||||
start += found.index + found[1].length+4;
|
start += found.index + found[1].length+4;
|
||||||
|
|
Loading…
Add table
Reference in a new issue