summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-13 22:38:09 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-13 22:38:09 +0000
commit134e6a164e8d9988f1573458aeb9046b192b0378 (patch)
tree2a377d1087f65491401e4d0418144bae123c9cad /bin
parent5d6e06fa17d5e155a01e14a9e6ceb3abf3d1b69f (diff)
downloadampache-134e6a164e8d9988f1573458aeb9046b192b0378.tar.gz
ampache-134e6a164e8d9988f1573458aeb9046b192b0378.tar.bz2
ampache-134e6a164e8d9988f1573458aeb9046b192b0378.zip
fixed album art if php-gd in not installed
Diffstat (limited to 'bin')
-rw-r--r--bin/sort_files.php.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sort_files.php.inc b/bin/sort_files.php.inc
index 8fd2b673..d0ccc31a 100644
--- a/bin/sort_files.php.inc
+++ b/bin/sort_files.php.inc
@@ -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;
@@ -104,6 +104,7 @@ function sort_find_filename($song,$rename_pattern) {
/* Start replacing stuff */
$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);