changed file existence checks to displayable
This commit is contained in:
parent
b6341e44b3
commit
6e89fdab30
|
@ -137,7 +137,7 @@ class Application_Model_Scheduler
|
|||
if ($type === "audioclip") {
|
||||
$file = CcFilesQuery::create()->findPK($id, $this->con);
|
||||
|
||||
if (is_null($file) || !$file->getDbFileExists()) {
|
||||
if (is_null($file) || !$file->displayable()) {
|
||||
throw new Exception("A selected File does not exist!");
|
||||
} else {
|
||||
$data = $this->fileInfo;
|
||||
|
@ -195,7 +195,7 @@ class Application_Model_Scheduler
|
|||
$dynamicFiles = $bl->getListOfFilesUnderLimit();
|
||||
foreach ($dynamicFiles as $fileId=>$f) {
|
||||
$file = CcFilesQuery::create()->findPk($fileId);
|
||||
if (isset($file) && $file->getDbFileExists()) {
|
||||
if (isset($file) && $file->displayable()) {
|
||||
$data["id"] = $file->getDbId();
|
||||
$data["cliplength"] = $file->getDbLength();
|
||||
$data["cuein"] = "00:00:00";
|
||||
|
@ -217,7 +217,7 @@ class Application_Model_Scheduler
|
|||
//need to return
|
||||
$stream = CcWebstreamQuery::create()->findPK($id, $this->con);
|
||||
|
||||
if (is_null($stream) /* || !$file->getDbFileExists() */) {
|
||||
if (is_null($stream) /* || !$file->displayable() */) {
|
||||
throw new Exception("A selected File does not exist!");
|
||||
} else {
|
||||
$data = $this->fileInfo;
|
||||
|
@ -252,7 +252,7 @@ class Application_Model_Scheduler
|
|||
$dynamicFiles = $bl->getListOfFilesUnderLimit();
|
||||
foreach ($dynamicFiles as $fileId=>$f) {
|
||||
$file = CcFilesQuery::create()->findPk($fileId);
|
||||
if (isset($file) && $file->getDbFileExists()) {
|
||||
if (isset($file) && $file->displayable()) {
|
||||
$data["id"] = $file->getDbId();
|
||||
$data["cliplength"] = $file->getDbLength();
|
||||
$data["cuein"] = "00:00:00";
|
||||
|
|
Loading…
Reference in New Issue