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:
parent
7a983b52ed
commit
36ca2c29fc
|
@ -581,8 +581,10 @@ class Application_Model_Schedule {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function deleteWithFileId($fileId){
|
public static function deleteWithFileId($fileId){
|
||||||
global $CC_CONFIG, $CC_DBC;
|
global $CC_CONFIG;
|
||||||
$CC_DBC->query("DELETE FROM ".$CC_CONFIG["scheduleTable"]." WHERE file_id=$fileId");
|
$con = Propel::getConnection();
|
||||||
|
$sql = "DELETE FROM ".$CC_CONFIG["scheduleTable"]." WHERE file_id=$fileId";
|
||||||
|
$res = $con->query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function createNewFormSections($p_view){
|
public static function createNewFormSections($p_view){
|
||||||
|
|
Loading…
Reference in New Issue