Uploaded image for project: 'Turbine'
  1. Turbine
  2. TRB-82

template file name can't contain "."

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Core 2.3.3
    • Core 4.0-M2
    • Core
    • None

    Description

      I wan't template file name like "user.money.vm".
      but TurbineTemplateService getExtension function use "indexof()" get the file extension.
      It should be "lastindexof()"....
      can you do it?

      org.apache.turbine.services.template.TurbineTemplateService{
      public String getExtension(String template)
      {
      if (StringUtils.isEmpty(template))

      { return getDefaultExtension(); }

      //at here ,change to int dotIndex = template.lastindexOf(EXTENSION_SEPARATOR);
      int dotIndex = template.indexOf(EXTENSION_SEPARATOR);

      return (dotIndex < 0) ? getDefaultExtension() : template.substring(dotIndex + 1);
      }
      }

      Attachments

        Issue Links

          Activity

            People

              tv Thomas Vandahl
              kxlzx kxlzx
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 96h
                  96h
                  Remaining:
                  Remaining Estimate - 96h
                  96h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified