diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-22 17:44:10 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-22 17:44:10 +0000 |
commit | 67cbb218cd89ac6be9d1d55ca3799080daac1f5a (patch) | |
tree | 9aabddaed61a0bda1e477cf44c69400d1590779f /lib/class/album.class.php | |
parent | d5ae71f551f0aebef1dbae518a116a1c86430ffb (diff) | |
download | ampache-67cbb218cd89ac6be9d1d55ca3799080daac1f5a.tar.gz ampache-67cbb218cd89ac6be9d1d55ca3799080daac1f5a.tar.bz2 ampache-67cbb218cd89ac6be9d1d55ca3799080daac1f5a.zip |
renamed xml-rpc acl to rpc, added default mime type of image/jpg and added config options for batch download to the fs, no garbage collection for non-completed downloads yet.
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r-- | lib/class/album.class.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index 601b1f9b..bbacf852 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -751,6 +751,9 @@ class Album { } } // if we have PHP:GD + // Default to image/jpg as a guess if there is no passed mime type + $mime = $mime ? $mime : 'image/jpg'; + // Push the image into the database $sql = "REPLACE INTO `album_data` SET `art` = '" . Dba::escape($image) . "'," . " `art_mime` = '" . Dba::escape($mime) . "'" . |