Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
355ceadedb
2 changed files with 9 additions and 10 deletions
|
@ -825,13 +825,11 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
$this->view->newForm = $this->view->render(
|
$this->view->newForm = $this->view->render(
|
||||||
'schedule/add-show-form.phtml');
|
'schedule/add-show-form.phtml');
|
||||||
Logging::debug("Show creation succeeded");
|
Logging::debug("Show creation succeeded");
|
||||||
Logging::debug_sparse( $data );
|
|
||||||
} else {
|
} else {
|
||||||
$this->view->addNewShow = true;
|
$this->view->addNewShow = true;
|
||||||
$this->view->form = $this->view->render(
|
$this->view->form = $this->view->render(
|
||||||
'schedule/add-show-form.phtml');
|
'schedule/add-show-form.phtml');
|
||||||
Logging::debug("Show creation failed");
|
Logging::debug("Show creation failed");
|
||||||
Logging::debug_sparse( $data );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,8 @@ class Application_Model_ShowBuilder
|
||||||
*/
|
*/
|
||||||
private function getScheduledStatus($p_epochItemStart, $p_epochItemEnd, &$row)
|
private function getScheduledStatus($p_epochItemStart, $p_epochItemEnd, &$row)
|
||||||
{
|
{
|
||||||
if ($row["footer"] === true && $this->epoch_now > $p_epochItemStart && $this->epoch_now > $p_epochItemEnd) {
|
if ($row["footer"] === true && $this->epoch_now > $p_epochItemStart &&
|
||||||
|
$this->epoch_now > $p_epochItemEnd) {
|
||||||
$row["scheduled"] = 0;
|
$row["scheduled"] = 0;
|
||||||
} elseif ($row["footer"] === true && $this->epoch_now < $p_epochItemEnd) {
|
} elseif ($row["footer"] === true && $this->epoch_now < $p_epochItemEnd) {
|
||||||
$row["scheduled"] = 2;
|
$row["scheduled"] = 2;
|
||||||
|
@ -314,18 +315,18 @@ class Application_Model_ShowBuilder
|
||||||
|
|
||||||
private function makeFooterRow($p_item)
|
private function makeFooterRow($p_item)
|
||||||
{
|
{
|
||||||
$row = $this->defaultRowArray;
|
$row = $this->defaultRowArray;
|
||||||
$row["footer"] = true;
|
$row["footer"] = true;
|
||||||
$row["instance"] = intval($p_item["si_id"]);
|
$row["instance"] = intval($p_item["si_id"]);
|
||||||
$this->getRowTimestamp($p_item, $row);
|
$this->getRowTimestamp($p_item, $row);
|
||||||
|
|
||||||
$showEndDT = new DateTime($p_item["si_ends"], new DateTimeZone("UTC"));
|
$showEndDT = new DateTime($p_item["si_ends"], new DateTimeZone("UTC"));
|
||||||
$contentDT = $this->contentDT;
|
$contentDT = $this->contentDT;
|
||||||
|
|
||||||
$runtime = bcsub($contentDT->format("U.u"), $showEndDT->format("U.u"), 6);
|
$runtime = bcsub($contentDT->format("U.u"), $showEndDT->format("U.u"), 6);
|
||||||
$row["runtime"] = $runtime;
|
$row["runtime"] = $runtime;
|
||||||
|
|
||||||
$timeFilled = new TimeFilledFormatter($runtime);
|
$timeFilled = new TimeFilledFormatter($runtime);
|
||||||
$row["fRuntime"] = $timeFilled->format();
|
$row["fRuntime"] = $timeFilled->format();
|
||||||
|
|
||||||
$showStartDT = new DateTime($p_item["si_starts"], new DateTimeZone("UTC"));
|
$showStartDT = new DateTime($p_item["si_starts"], new DateTimeZone("UTC"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue