From 36ca2c29fca61b7187689872cffd8cde1255d6eb Mon Sep 17 00:00:00 2001 From: James Date: Fri, 13 Apr 2012 15:03:27 -0400 Subject: [PATCH] CC-3634: Media Folder: if file was deleted from file system, and the file was scheduled in the future, it wasn't marking the file as deleted - using propel instead of PEAR DB --- airtime_mvc/application/models/Schedule.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index d491ed886..fb71a8f02 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -581,8 +581,10 @@ class Application_Model_Schedule { } public static function deleteWithFileId($fileId){ - global $CC_CONFIG, $CC_DBC; - $CC_DBC->query("DELETE FROM ".$CC_CONFIG["scheduleTable"]." WHERE file_id=$fileId"); + global $CC_CONFIG; + $con = Propel::getConnection(); + $sql = "DELETE FROM ".$CC_CONFIG["scheduleTable"]." WHERE file_id=$fileId"; + $res = $con->query($sql); } public static function createNewFormSections($p_view){