media handling fixes, gotten rid of StorageObject, set the default method for blots...
[mir.git] / source / mircoders / module / ModuleArticleType.java
index 953a732..20d847d 100755 (executable)
@@ -45,7 +45,7 @@ public class ModuleArticleType extends AbstractModule {
 
   public String articleTypeIdForName(String aName) throws ModuleExc, ModuleFailure {
     try {
-      return storage.executeFreeSingleValueSql("select id from article_type where name = '" + JDBCStringRoutines.escapeStringLiteral(aName) + "'");
+      return database.executeFreeSingleValueSql("select id from article_type where name = '" + JDBCStringRoutines.escapeStringLiteral(aName) + "'");
     }
     catch (Throwable t) {
       throw new ModuleFailure(t);