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:
parent
ecb072b84c
commit
f6aa2e5a3b
|
@ -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.");
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class CloudFile extends BaseCloudFile
|
|||
|
||||
public function getFilename()
|
||||
{
|
||||
return $this->getResourceId();
|
||||
return $this->getDbFilepath();
|
||||
}
|
||||
|
||||
public function isValidFile()
|
||||
|
|
Loading…
Reference in New Issue