CC-3747: Metadata popup should also show the filepath of the track
-fixed
This commit is contained in:
parent
0d5b9ebada
commit
ff6e2a2e5a
3 changed files with 10 additions and 14 deletions
|
@ -225,19 +225,7 @@ class Application_Model_StoredFile {
|
|||
foreach ($c['user'] as $constant => $value) {
|
||||
if (preg_match('/^MDATA_KEY/', $constant)) {
|
||||
if (isset($this->_dbMD[$value])) {
|
||||
if ($value == 'filepath') {
|
||||
$directoryPK = $this->getDbColMetadataValue('directory');
|
||||
if ($directoryPK == 1) {
|
||||
$musicDir = Application_Model_MusicDir::getDirByPK($directoryPK);
|
||||
$md[$constant] = $musicDir->getDirectory() . $this->getDbColMetadataValue($value);
|
||||
}
|
||||
else {
|
||||
$md[$constant] = $this->getDbColMetadataValue($value);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$md[$constant] = $this->getDbColMetadataValue($value);
|
||||
}
|
||||
$md[$constant] = $this->getDbColMetadataValue($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue