mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
fixed album art if php-gd in not installed
This commit is contained in:
parent
5d6e06fa17
commit
134e6a164e
3 changed files with 7 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Don't do anything just tell me what you would do */
|
/* Don't do anything just tell me what you would do */
|
||||||
$test_mode = true;
|
/* $test_mode = true; */
|
||||||
|
|
||||||
/* m(__)m */
|
/* m(__)m */
|
||||||
$alphabet_prefix = true;
|
$alphabet_prefix = true;
|
||||||
|
@ -105,6 +105,7 @@ function sort_find_filename($song,$rename_pattern) {
|
||||||
$replace_array = array('%a','%A','%t','%T','%y','%g');
|
$replace_array = array('%a','%A','%t','%T','%y','%g');
|
||||||
$content_array = array($artist,$album,$title,$track,$year,$genre);
|
$content_array = array($artist,$album,$title,$track,$year,$genre);
|
||||||
|
|
||||||
|
|
||||||
$rename_pattern = str_replace($replace_array,$content_array,$rename_pattern);
|
$rename_pattern = str_replace($replace_array,$content_array,$rename_pattern);
|
||||||
|
|
||||||
$rename_pattern = preg_replace("[^A-Za-z0-9\-\_\ \'\,\(\)]","_",$rename_pattern);
|
$rename_pattern = preg_replace("[^A-Za-z0-9\-\_\ \'\,\(\)]","_",$rename_pattern);
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
v.3.3.2-Beta2
|
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)
|
- Fixed Remember Me button (part of the vauth)
|
||||||
- Added new Session Handling code called vauth (Vollmer's Auth)
|
- Added new Session Handling code called vauth (Vollmer's Auth)
|
||||||
- Moved xml-rpc server file to /server/xmlrpc.server.php keeping
|
- Moved xml-rpc server file to /server/xmlrpc.server.php keeping
|
||||||
|
|
|
@ -786,6 +786,8 @@ function img_resize($image,$size,$type){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!function_exists('gd_info')) { return false; }
|
||||||
|
|
||||||
/* First check for php-gd */
|
/* First check for php-gd */
|
||||||
$info = gd_info();
|
$info = gd_info();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue