CC-3747: Metadata popup should also show the filepath of the track

-fixed
This commit is contained in:
denise 2012-05-02 16:52:49 -04:00
parent 0d5b9ebada
commit ff6e2a2e5a
3 changed files with 10 additions and 14 deletions

View file

@ -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);
}
}
}