From 38929aa1f4f4a017be4d2e93c32165b9e51f635d Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 21 Jul 2020 13:21:17 +0000
Subject: [PATCH] In Arbeit: PDF Theme

---
 src/de/uhilger/wbx/WbxUtils.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/wbx/WbxUtils.java b/src/de/uhilger/wbx/WbxUtils.java
index f2b7a1f..dc023e7 100644
--- a/src/de/uhilger/wbx/WbxUtils.java
+++ b/src/de/uhilger/wbx/WbxUtils.java
@@ -95,6 +95,9 @@
     Bild bild = new Bild();
     //WbxUtils wu = new WbxUtils();
     String basis = getJNDIParameter(WBX_FILE_BASE, WbxUtils.EMPTY_STRING);
+    if(basis.equals(WbxUtils.EMPTY_STRING)) {
+      basis = getWbxDataDir().getAbsolutePath();
+    }    
     String pubDirName = getJNDIParameter(WbxUtils.WBX_PUB_DIR_NAME, WbxUtils.WBX_DEFAULT_PUB_DIR_NAME);
     String pubUrlName = getJNDIParameter(WbxUtils.WBX_PUB_URL_NAME, WbxUtils.WBX_DEFAULT_PUB_URL_NAME);
     String relPath = relativePath.replace(pubUrlName, pubDirName);
@@ -192,6 +195,7 @@
    * @param dateizaehler 
    */
   public void collectFiles(File dir, int tiefe, List beitraege, int maxTiefe, int maxBeitraege) {
+    logger.fine(dir.getAbsolutePath());
     List dirs = new ArrayList();
     List beitraegeHier = new ArrayList();
     File[] files = dir.listFiles();
@@ -245,7 +249,7 @@
         String nm = bf.getName().toLowerCase();
         if(nm.endsWith(".htmi") || nm.endsWith(".html") || nm.endsWith(".htm") || 
            nm.endsWith(".jpg") || nm.endsWith(".jpeg") || nm.endsWith(".png") || 
-           nm.endsWith(".txt")) {
+           nm.endsWith(".txt") || nm.endsWith(".md")) {
           beitraege.add(bf);
         }
       }

--
Gitblit v1.9.3