cc-1799 : Filesystem
incorrect variable.
This commit is contained in:
parent
164c06a5e5
commit
0111fd5725
2 changed files with 3 additions and 2 deletions
|
@ -513,7 +513,7 @@ class StoredFile {
|
|||
if (is_null($path_info)) {
|
||||
return null;
|
||||
}
|
||||
$musicDir = MusicDir::getDirByPath($path_info[0]);
|
||||
$music_dir = MusicDir::getDirByPath($path_info[0]);
|
||||
|
||||
$file = CcFilesQuery::create()
|
||||
->filterByDbDirectory($music_dir->getId())
|
||||
|
@ -534,7 +534,7 @@ class StoredFile {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function getName(){
|
||||
$info = pathinfo($this->getFilePath());
|
||||
return $info['filename'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue