You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2003/07/09 14:57:36 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication SiteTreeNodeImpl.java
egli 2003/07/09 05:57:36
Modified: src/java/org/apache/lenya/cms/publication
SiteTreeNodeImpl.java
Log:
Make sure getLabel can also handle "" as a xmlLanguage
when in reallity it is null.
Revision Changes Path
1.10 +4 -4 cocoon-lenya/src/java/org/apache/lenya/cms/publication/SiteTreeNodeImpl.java
Index: SiteTreeNodeImpl.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/SiteTreeNodeImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- SiteTreeNodeImpl.java 8 Jul 2003 09:24:33 -0000 1.9
+++ SiteTreeNodeImpl.java 9 Jul 2003 12:57:36 -0000 1.10
@@ -208,7 +208,7 @@
for (int i = 0; i < labels.length; i++) {
language = labels[i].getLanguage();
- if (((xmlLanguage == null) && (language == null))
+ if ((((xmlLanguage == null) || (xmlLanguage.equals(""))) && (language == null))
|| ((language != null) && (language.equals(xmlLanguage)))) {
label = labels[i];
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org