From 2848a50f33273e1fdcae4711eb266cfc325e4898 Mon Sep 17 00:00:00 2001 From: Tom Jenkinson Date: Wed, 1 Oct 2014 11:46:10 +0100 Subject: [PATCH] Carousel will now show 'live shortly' if it's a live show --- app/controllers/home/HomeController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/home/HomeController.php b/app/controllers/home/HomeController.php index 6ac59f2c..a47837e9 100644 --- a/app/controllers/home/HomeController.php +++ b/app/controllers/home/HomeController.php @@ -79,7 +79,12 @@ private function buildTimeStr($isLive, $time) { $liveStr = $isLive ? "Live" : "Available"; if ($time->isPast()) { - return "Available On Demand Now"; + if (!$isLive) { + return "Available On Demand Now"; + } + else { + return "Live Shortly"; + } } else if ($time->isToday()) { return $liveStr." Today at ".$time->format("H:i");