diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-07 20:35:49 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-07 20:35:49 +0000 |
commit | b6cfe134badb2d4393e9081b13b2dfca011ed736 (patch) | |
tree | 4f6213e626fa90b4b280b5e663e791559c4a7f8f /image.php | |
parent | 90d2acbc54b24b6e8207e12f1cabcbc7541ca447 (diff) | |
download | ampache-b6cfe134badb2d4393e9081b13b2dfca011ed736.tar.gz ampache-b6cfe134badb2d4393e9081b13b2dfca011ed736.tar.bz2 ampache-b6cfe134badb2d4393e9081b13b2dfca011ed736.zip |
* Re-worked Main page of Ampache, adding Album of the moment.
* Moved stats to /stats.php page
* Fixed logic error in resize that could cause nothign to display
if resize was on, but it still failed
* Fixed Upload Album art from Find Album Art
* Added Menu to the TV page
* Fixed logic error that showed localplay if user had access
regardless of global config
* Changed default action of browse.php to song browse
Diffstat (limited to 'image.php')
-rw-r--r-- | image.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -59,7 +59,6 @@ switch ($_REQUEST['type']) { $image = get_image_from_source($_SESSION['form']['images'][$key]); $mime = $_SESSION['form']['images'][$key]['mime']; - $data = explode("/",$mime); $extension = $data['1']; @@ -88,11 +87,11 @@ switch ($_REQUEST['type']) { $extension = $data['1']; header("Content-type: $mime"); header("Content-Disposition: filename=" . $album->name . "." . $extension); - if (!$_REQUEST['thumb']) { + if (empty($_REQUEST['thumb'])) { echo $art; } elseif (!img_resize($art,$size,$extension)) { - echo $art; + echo $art; } break; } // end switch type |