jgallery
  1. jgallery
  2. JGALLERY-6

Folder.getCurrentPage() fails on a folder containing subdirectories

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      6

      Description

      Folder.getCurrentPage() fails when called on a folder that contains a
      subdirectory, as imageNum points to the first item in the folder (in this case a
      subdirectory) the getCurrentPage() method assumes it is an image.

      suggested change from:

      public String getCurrentPage() {
      return getSlidePage(imageNum);
      }

      to:

      public String getCurrentPage() {
      return imageNum > subDirectories.length ? getSlidePage(imageNum) : "";
      }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jgallery-issues
            Reporter:
            pgleghorn
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: