CC-4051: Library -> First character gets cut off of file name when downloading a track from a watched folder

-fixed
This commit is contained in:
denise 2012-06-29 16:02:27 -04:00
parent 68420a898f
commit 7ea106e0d3
1 changed files with 3 additions and 2 deletions

View File

@ -134,8 +134,9 @@ class ApiController extends Zend_Controller_Action
*/
if (!$file_base_name) {
$file_base_name = $full_path;
}
$file_base_name = substr($file_base_name, 1);
} else {
$file_base_name = substr($file_base_name, 1);
}
// possibly use fileinfo module here in the future.
// http://www.php.net/manual/en/book.fileinfo.php
$ext = pathinfo($fileID, PATHINFO_EXTENSION);