From f9a19d9e278b4ec7ea4088db5862600003e42d26 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Tue, 18 Apr 2017 08:42:32 +0200 Subject: [PATCH] Uses the minimized angular from public dir instead of cdn This uses the available minimized version of angular instead of using the non minimized version from the google cdn. --- airtime_mvc/application/controllers/EmbedController.php | 1 + .../application/views/scripts/embed/weekly-program.phtml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/controllers/EmbedController.php b/airtime_mvc/application/controllers/EmbedController.php index dbe12cb0b..0898dfc18 100644 --- a/airtime_mvc/application/controllers/EmbedController.php +++ b/airtime_mvc/application/controllers/EmbedController.php @@ -90,6 +90,7 @@ class EmbedController extends Zend_Controller_Action $request = $this->getRequest(); + $this->view->angular = Application_Common_HTTPHelper::getStationUrl() . 'js/libs/angular.min.js?'.$CC_CONFIG['airtime_version']; $widgetStyle = $request->getParam('style'); if ($widgetStyle == "premium") { $this->view->widgetStyle = "premium"; diff --git a/airtime_mvc/application/views/scripts/embed/weekly-program.phtml b/airtime_mvc/application/views/scripts/embed/weekly-program.phtml index 548f9e233..9a4c68289 100644 --- a/airtime_mvc/application/views/scripts/embed/weekly-program.phtml +++ b/airtime_mvc/application/views/scripts/embed/weekly-program.phtml @@ -2,7 +2,7 @@ - +