Skip to content

Commit 59e0899

Browse files
committed
It's helpful to run the tests. Fix an issue that causes some links (such as those on AllPages) not to work.
1 parent 4aa1b4d commit 59e0899

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wiki-src/net/hillsdon/reviki/wiki/renderer/SvnWikiLinkPartHandler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import net.hillsdon.reviki.vc.PageReference;
2323
import net.hillsdon.reviki.vc.PageStore;
2424
import net.hillsdon.reviki.vc.PageStoreException;
25+
import net.hillsdon.reviki.vc.SimplePageStore;
2526
import net.hillsdon.reviki.web.urls.Configuration;
2627
import net.hillsdon.reviki.web.urls.InterWikiLinker;
2728
import net.hillsdon.reviki.web.urls.InternalLinker;
@@ -41,7 +42,7 @@ public class SvnWikiLinkPartHandler implements LinkPartsHandler {
4142

4243
private final String _formatString;
4344

44-
private final PageStore _store;
45+
private final SimplePageStore _store;
4546

4647
private final LinkResolutionContext _linkResolutionContext;
4748

@@ -52,7 +53,7 @@ public class SvnWikiLinkPartHandler implements LinkPartsHandler {
5253
public SvnWikiLinkPartHandler(final String formatString, final LinkResolutionContext parentContext) {
5354
_formatString = formatString;
5455
_internalLinker = null;
55-
_store = null;
56+
_store = parentContext.getPageStore();
5657
_configuration = null;
5758
_linkResolutionContext = parentContext;
5859
}

0 commit comments

Comments
 (0)