get url
[mir.git] / source / mircoders / storage / DatabaseImages.java
index 1a5df1c..ede4e15 100755 (executable)
@@ -38,18 +38,17 @@ public class DatabaseImages extends Database implements StorageObject{
                this.theTable="images";
                this.theCoreTable="media";
                try {
-                       this.theEntityClass = Class.forName("mircoders.entity.EntityImage");
+                       this.theEntityClass = Class.forName("mircoders.entity.EntityImages");
                }
                catch (Exception e) { throw new StorageObjectException(e.toString());   }
        }
 
-       public SimpleList getPopupData() {
+       public SimpleList getPopupData() throws StorageObjectException {
                return getPopupData("title",true);
        }
 
        public void update(Entity theEntity) throws StorageObjectException
        {
-               theEntity.setValueForProperty("to_media_type","1");
                String date = theEntity.getValue("date");
                if (date==null){
                        date = StringUtil.date2webdbDate(new GregorianCalendar());
@@ -62,7 +61,6 @@ public class DatabaseImages extends Database implements StorageObject{
 
        public String insert(Entity theEntity) throws StorageObjectException
        {
-               theEntity.setValueForProperty("to_media_type","1");
                String date = theEntity.getValue("date");
                if (date==null){
                        date = StringUtil.date2webdbDate(new GregorianCalendar());