if (virtualWikiName == null) {
logger.severe("No virtual wiki available for page request "
+ request.getRequestURI());
virtualWikiName = WikiBase.DEFAULT_VWIKI;
}
VirtualWiki virtualWiki = ServletUtil.retrieveVirtualWiki(virtualWikiName);
// build the layout contents
String leftMenu = ServletUtil.cachedContent(request.getContextPath(),
request.getLocale(), virtualWikiName, WikiBase.SPECIAL_PAGE_LEFT_MENU,
true);
next.addObject("leftMenu", leftMenu);
next.addObject("defaultTopic", virtualWiki.getDefaultTopicName());
next.addObject("virtualWiki", virtualWiki.getName());
next.addObject("logo", Environment
.getValue(Environment.PROP_BASE_LOGO_IMAGE));
String bottomArea = ServletUtil.cachedContent(request.getContextPath(),
request.getLocale(), virtualWiki.getName(),
WikiBase.SPECIAL_PAGE_BOTTOM_AREA, true);
next.addObject("bottomArea", bottomArea);
next.addObject(WikiUtil.PARAMETER_VIRTUAL_WIKI, virtualWiki.getName());
// int cssRevision = 0;
// try {
// cssRevision =
// WikiBase.getDataHandler().lookupTopic(virtualWiki.getName(),
// WikiBase.SPECIAL_PAGE_STYLESHEET, false, null).getCurrentVersionId();