X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fmodule%2FModuleImages.java;h=13ee50dd7100e82d97a464ada2f79749889a02e9;hb=0fec104dee8d11f7f65447a635de68eed29ab040;hp=500887e2bdc16fbc2f843ab0f7433684ef6dc23a;hpb=3a661e8f0f659ab5ed2ac0e4d982ac0b398d11f1;p=mir.git diff --git a/source/mircoders/module/ModuleImages.java b/source/mircoders/module/ModuleImages.java index 500887e2..13ee50dd 100755 --- a/source/mircoders/module/ModuleImages.java +++ b/source/mircoders/module/ModuleImages.java @@ -24,7 +24,7 @@ public class ModuleImages extends AbstractModule { public ModuleImages(StorageObject theStorage) { - if (theLog == null) theLog = Logfile.getInstance(Configuration.getProperty("Home")+Configuration.getProperty("Module.Bilder.Logfile")); + if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home")+MirConfig.getProp("Module.Images.Logfile")); if (theStorage == null) theLog.printWarning("StorageObject was null!"); this.theStorage = theStorage; @@ -32,10 +32,15 @@ public class ModuleImages extends AbstractModule { // Methoden - public SimpleList getBilderAsSimpleList() { + public SimpleList getBilderAsSimpleList() + throws ModuleException { // String sql = "select id, name from Bilder order by name"; - return ((DatabaseImages)theStorage).getPopupData(); + try { + return ((DatabaseImages)theStorage).getPopupData(); + } catch (StorageObjectException e) { + throw new ModuleException(e.toString()); + } } }