tdraier     2005/11/04 12:25:03 CET

  Modified files:
    core/src/java/org/jahia/taglibs/util CurrentPagePathTag.java 
  Log:
  and fixed non-deprecated version
  
  Revision  Changes    Path
  1.6       +4 -3      
jahia/core/src/java/org/jahia/taglibs/util/CurrentPagePathTag.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/core/src/java/org/jahia/taglibs/util/CurrentPagePathTag.java.diff?r1=1.5&r2=1.6&f=h
  
  
  
  Index: CurrentPagePathTag.java
  ===================================================================
  RCS file: 
/home/cvs/repository/jahia/core/src/java/org/jahia/taglibs/util/CurrentPagePathTag.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CurrentPagePathTag.java   4 Nov 2005 09:58:34 -0000       1.5
  +++ CurrentPagePathTag.java   4 Nov 2005 11:25:03 -0000       1.6
  @@ -4,6 +4,7 @@
   import org.jahia.exceptions.JahiaException;
   import org.jahia.gui.GuiBean;
   import org.jahia.services.pages.JahiaPage;
  +import org.jahia.services.pages.ContentPage;
   import org.jahia.utils.JahiaConsole;
   
   import javax.servlet.http.HttpServletRequest;
  @@ -90,7 +91,7 @@
                   getOperationMode(), jData.getProcessingContext().getUser());
               StringBuffer path = new StringBuffer();
               while (thePath.hasMoreElements()) {
  -                JahiaPage thePage = (JahiaPage) thePath.nextElement();
  +                ContentPage thePage = (ContentPage) thePath.nextElement();
                   if (thePage != null) {
                       path.append("<a ");
                       if (!this.style.equals("")) {
  @@ -102,9 +103,9 @@
                       
path.append(thePage.getURL(jData.getProcessingContext()));
                       path.append("\">");
                       if (this.maxchar == 0) {
  -                        this.maxchar = thePage.getTitle().length();
  +                        this.maxchar = 
thePage.getTitle(jData.getProcessingContext()).length();
                       }
  -                    path.append(GuiBean.glueTitle(thePage.getTitle(),
  +                    
path.append(GuiBean.glueTitle(thePage.getTitle(jData.getProcessingContext()),
                                                     this.maxchar));
                       path.append("</a>");
                       if (thePath.hasMoreElements()) {
  

Reply via email to