diff options
author | David A. Madore <david+git@madore.org> | 2014-10-09 20:40:26 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2014-10-09 20:40:26 +0200 |
commit | cde90f22cc34b898c684c9de78c5e93022dbd42a (patch) | |
tree | 39cbca2edfa3acdfb640e64ca9ff3803fdcd08cc /org/madore/damlengine/TodoWXrefAttr.java | |
parent | 827925b57dc5ba84e480cf9c66ff2cb13a096780 (diff) | |
download | damlengine-cde90f22cc34b898c684c9de78c5e93022dbd42a.tar.gz damlengine-cde90f22cc34b898c684c9de78c5e93022dbd42a.tar.bz2 damlengine-cde90f22cc34b898c684c9de78c5e93022dbd42a.zip |
Add a "dynamic context" global state, and make WeblogSummary stale when too old.
Diffstat (limited to 'org/madore/damlengine/TodoWXrefAttr.java')
-rw-r--r-- | org/madore/damlengine/TodoWXrefAttr.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoWXrefAttr.java b/org/madore/damlengine/TodoWXrefAttr.java index dbc5511..5065465 100644 --- a/org/madore/damlengine/TodoWXrefAttr.java +++ b/org/madore/damlengine/TodoWXrefAttr.java @@ -26,7 +26,7 @@ public class TodoWXrefAttr extends TodoAttr { if ( ctx.wsc == null ) throw new IllegalStateException("wxref attribute encountered with no weblog selection state"); int prev = ctx.wsc.sel.first() - 1; - WeblogSummary sum = WeblogSummary.getSummary(); + WeblogSummary sum = WeblogSummary.getSummary(ctx.dc); if ( sum != null && sum.entries != null && sum.entries.containsKey(new Integer(prev)) ) { WeblogSummary.EntrySummary ent |