cc-1799 : Filesystem

incorrect variable.
This commit is contained in:
Naomi Aro 2011-06-28 15:04:03 +02:00
parent 164c06a5e5
commit 0111fd5725
2 changed files with 3 additions and 2 deletions

View file

@ -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'];