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
This commit is contained in:
James 2012-04-13 15:03:27 -04:00
parent 7a983b52ed
commit 36ca2c29fc
1 changed files with 4 additions and 2 deletions
airtime_mvc/application/models

View File

@ -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){