diff options
author | David A. Madore <david+git@madore.org> | 2011-08-26 16:53:03 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2011-08-26 16:53:03 +0200 |
commit | 961bdfc66151b9aef46149e4730110ef409e5587 (patch) | |
tree | 4b6ad9a0e8253905af8d8f838ef2668fec4bfc0e /org/madore/damlengine/TodoComments.java | |
parent | 7d3f4db185f5499160228afb228ecac6c6d22476 (diff) | |
download | damlengine-961bdfc66151b9aef46149e4730110ef409e5587.tar.gz damlengine-961bdfc66151b9aef46149e4730110ef409e5587.tar.bz2 damlengine-961bdfc66151b9aef46149e4730110ef409e5587.zip |
Move most of the context to a "general context" substructure.
This is so as to make sure that cloning (which does a shallow copy)
gives us references to the same mutable content.
Diffstat (limited to 'org/madore/damlengine/TodoComments.java')
-rw-r--r-- | org/madore/damlengine/TodoComments.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org/madore/damlengine/TodoComments.java b/org/madore/damlengine/TodoComments.java index e1dd027..85ce7d3 100644 --- a/org/madore/damlengine/TodoComments.java +++ b/org/madore/damlengine/TodoComments.java @@ -37,20 +37,20 @@ public final class TodoComments extends TodoElement { p.setAttributeNS(null, "class", "talkback-link"); node.getParentNode().replaceChild(p, node); Element a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a"); - if ( ctx.entryCtx == null ) + if ( ctx.ent == null ) throw new IllegalStateException("entry context not defined in comments element"); String commentURL = "http://www.madore.org/cgi-bin/comment.pl/" + "showcomments?href=http%3a%2f%2fwww.madore.org%2f" + "%7edavid%2fweblog%2f" - + ctx.entryCtx.yandm + ".html%23d." + ctx.entryCtx.date - + "." + ctx.entryCtx.number; + + ctx.ent.yandm + ".html%23d." + ctx.ent.date + + "." + ctx.ent.number; a.setAttributeNS(null, "href", commentURL); p.appendChild(a); a.appendChild(ctx.doc.createTextNode(linkNameTable.get(lang))); Element span = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "span"); span.setAttributeNS(null, "id", - "d." + ctx.entryCtx.date + "." - + ctx.entryCtx.number + ".numcomments"); + "d." + ctx.ent.date + "." + + ctx.ent.number + ".numcomments"); p.appendChild(span); span.appendChild(ctx.doc.createComment(" EMPTY ")); } |