From 3d819297b9a9907acaaf992af72e8c8da61d692e Mon Sep 17 00:00:00 2001 From: james Date: Thu, 30 Jun 2011 13:36:44 -0400 Subject: [PATCH] CC-2471:error when upload a duplicate - fixed as Paul requested --- airtime_mvc/application/models/StoredFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 807a3f584..88ef45fcc 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -172,7 +172,7 @@ class StoredFile { */ public function getMetadataValue($p_category) { - return $this->getDbColMetadataValue(constant($p_category)); + return $this->getDbColMetadataValue($p_category); } /** @@ -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(UI_MDATA_KEY_TITLE); die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "An identical audioclip named ' . $duplicateName . ' already exists in the storage server."}}'); } }