commit | afbb26375099c66778300b9e7bc05f7ab8adf5fd | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Mon Oct 11 14:49:36 2010 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Mon Oct 11 14:49:36 2010 +0000 |
tree | a91332486a89f807d8f990981a84ec1eb45794fd | |
parent | e64c2846f534647d839d9376b2239828dd515b99 [diff] |
FELIX-2650 : ConfigurationPrinter with other modes than web should be excluded from web git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1021362 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java index 2a1a316..873ec89 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
@@ -227,9 +227,12 @@ for (Iterator i = printers.iterator(); i.hasNext();) { final PrinterDesc desc = (PrinterDesc) i.next(); - final String label = desc.label; - final String title = desc.title; - pw.print("<li><a href='" + pluginRoot + label + ".nfo'>" + title + "</a></li>" ); + if ( desc.match(ConfigurationPrinter.MODE_WEB) ) + { + final String label = desc.label; + final String title = desc.title; + pw.print("<li><a href='" + pluginRoot + label + ".nfo'>" + title + "</a></li>" ); + } } pw.println("</ul> <!-- end tabs on top -->"); pw.println();