Some changes to enable per-page sidebar configuration from the config file

This commit is contained in:
str4d
2012-06-09 13:48:26 +00:00
parent 0a61b8052c
commit cc61f4eb61
3 changed files with 14 additions and 10 deletions

View File

@@ -59,8 +59,10 @@ public class SummaryBarRenderer {
* on lower-level directory errors.
*/
public void renderSummaryHTML(Writer out) throws IOException {
String requestURI = _helper.getRequestURI();
String page = requestURI.replace("/", "").replace(".jsp", "");
List<String> sections = _helper.getSummaryBarSections(page);
StringBuilder buf = new StringBuilder(8*1024);
List<String> sections = _helper.getSummaryBarSections();
for (String section : sections) {
// Commented out because broken. Replaced by if-elseif blob below.
/*try {