CC-5896: Store cloud files in separate table, inherited from cc_files

For cloud files, return the original filename when downloading a file instead of the cloud object name
This commit is contained in:
drigato 2014-07-28 16:02:06 -04:00
parent ecb072b84c
commit f6aa2e5a3b
2 changed files with 2 additions and 3 deletions

View File

@ -84,8 +84,7 @@ class CcFiles extends BaseCcFiles {
public function getAbsoluteFilePath()
{
$music_dir = Application_Model_MusicDir::getDirByPK($this->
_file->getDbDirectory());
$music_dir = Application_Model_MusicDir::getDirByPK($this->getDbDirectory());
if (!$music_dir) {
throw new Exception("Invalid music_dir for file in database.");
}

View File

@ -28,7 +28,7 @@ class CloudFile extends BaseCloudFile
public function getFilename()
{
return $this->getResourceId();
return $this->getDbFilepath();
}
public function isValidFile()