CC-2503: replacing UI_MDATA_KEY_TITLE with MDATA_KEY_TITLE

-fixed
This commit is contained in:
james 2011-07-04 10:00:37 -04:00
parent 6de8b09184
commit 75ea77e6a6
3 changed files with 2 additions and 5 deletions

View file

@ -805,7 +805,7 @@ class StoredFile {
die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": ' . $duplicate->getMessage() .'}}');
}
if (file_exists($duplicate->getFilePath())) {
$duplicateName = $duplicate->getMetadataValue(UI_MDATA_KEY_TITLE);
$duplicateName = $duplicate->getMetadataValue(MDATA_KEY_TITLE);
die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "An identical audioclip named ' . $duplicateName . ' already exists in the storage server."}}');
}
}