morciuch 2003/07/17 07:57:54 Modified: src/java/org/apache/jetspeed/services/template JetspeedTemplateLocatorService.java Log: Fixed a bug in localizeTemplateName, where locales where incorrectly returned for each media type supported. So instead of: html/en/US xml/en/US we were getting: html/en/US html/en/USxml/en/US So everything worked only for the first media type. Revision Changes Path 1.18 +3 -1 jakarta-jetspeed/src/java/org/apache/jetspeed/services/template/JetspeedTemplateLocatorService.java Index: JetspeedTemplateLocatorService.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/template/JetspeedTemplateLocatorService.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- JetspeedTemplateLocatorService.java 8 Apr 2003 21:35:31 -0000 1.17 +++ JetspeedTemplateLocatorService.java 17 Jul 2003 14:57:54 -0000 1.18 @@ -844,6 +844,7 @@ } templates.add(templatePath.toString()); + templatePath.setLength(0); } return templates; @@ -889,6 +890,7 @@ { return templateMap.containsKey(templateKey); } + return (new File(templateKey).exists()); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]