Commit 4683a8fb authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed overriding sidebar items (JM-224).


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1175 b35dd754-fafc-0310-a699-88a17e54d16e
parent 265498fb
......@@ -328,7 +328,7 @@ public class AdminConsole {
// Override entries.
for (Iterator i=overrideSidebar.elementIterator(); i.hasNext(); ) {
Element entry = (Element)i.next();
String id = sidebar.attributeValue("id");
String id = entry.attributeValue("id");
Element existingEntry = getElemnetByID(id);
// Simple case, there is no existing sidebar with the same id.
if (existingEntry == null) {
......
......@@ -312,7 +312,10 @@ public class SidebarTag extends BodyTagSupport {
return (in == null ? "" : StringUtils.replace(in, "'", "\\'"));
}
private String i18n(String in) {
private static String i18n(String in) {
if (in == null) {
return null;
}
// Look for the key symbol:
if (in.indexOf("${") == 0 && in.indexOf("}") == in.length()-1) {
return LocaleUtils.getLocalizedString(in.substring(2, in.length()-1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment