From df9482f2ff9e0d939b87a7d042d73085b156c12b Mon Sep 17 00:00:00 2001 From: drigato Date: Thu, 17 Apr 2014 16:08:02 -0400 Subject: [PATCH] CC-5795: Airtime Analyzer: "Delete file" in Library doesnt remove it from path Media monitor was still being used to delete the file from stor --- airtime_mvc/application/models/StoredFile.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 866e8327f..87cbe0704 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -393,9 +393,8 @@ SQL; if (file_exists($filepath) && $type == "stor") { - $data = array("filepath" => $filepath, "delete" => 1); try { - Application_Model_RabbitMq::SendMessageToMediaMonitor("file_delete", $data); + unlink($filepath); } catch (Exception $e) { Logging::error($e->getMessage()); return;