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/TodoWeblogSelectionElement.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/TodoWeblogSelectionElement.java')
-rw-r--r-- | org/madore/damlengine/TodoWeblogSelectionElement.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoWeblogSelectionElement.java b/org/madore/damlengine/TodoWeblogSelectionElement.java index 637bc85..9d557d4 100644 --- a/org/madore/damlengine/TodoWeblogSelectionElement.java +++ b/org/madore/damlengine/TodoWeblogSelectionElement.java @@ -159,7 +159,7 @@ public final class TodoWeblogSelectionElement extends TodoDefaultElement { case SINGLE_TITLE: if ( ! ( ctx.wsc instanceof Context.WeblogSingleSelectionContext ) ) throw new IllegalStateException("weblog-selection-single-title element encountered while not in weblog single entry selection state"); - WeblogSummary wsum = WeblogSummary.getSummary(); + WeblogSummary wsum = WeblogSummary.getSummary(ctx.dc); if ( wsum == null || wsum.entries == null ) throw new IllegalStateException("failed to obtain weblog summary for weblog-selection-single-title"); WeblogSummary.EntrySummary esum |