1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00

fixed album art if php-gd in not installed

This commit is contained in:
Karl 'vollmerk' Vollmer 2006-01-13 22:38:09 +00:00
parent 5d6e06fa17
commit 134e6a164e
3 changed files with 7 additions and 2 deletions

View file

@ -33,7 +33,7 @@
*/
/* Don't do anything just tell me what you would do */
$test_mode = true;
/* $test_mode = true; */
/* m(__)m */
$alphabet_prefix = true;
@ -105,6 +105,7 @@ function sort_find_filename($song,$rename_pattern) {
$replace_array = array('%a','%A','%t','%T','%y','%g');
$content_array = array($artist,$album,$title,$track,$year,$genre);
$rename_pattern = str_replace($replace_array,$content_array,$rename_pattern);
$rename_pattern = preg_replace("[^A-Za-z0-9\-\_\ \'\,\(\)]","_",$rename_pattern);

View file

@ -4,6 +4,8 @@
--------------------------------------------------------------------------
v.3.3.2-Beta2
- Fixed a problem with the Image Resize code which wasn't correctly
detecting the lack of GD causing no art to be displayed
- Fixed Remember Me button (part of the vauth)
- Added new Session Handling code called vauth (Vollmer's Auth)
- Moved xml-rpc server file to /server/xmlrpc.server.php keeping

View file

@ -786,6 +786,8 @@ function img_resize($image,$size,$type){
return false;
}
if (!function_exists('gd_info')) { return false; }
/* First check for php-gd */
$info = gd_info();