diff --git a/airtime_mvc/application/Bootstrap.php b/airtime_mvc/application/Bootstrap.php index 42645e336..7a3f48703 100644 --- a/airtime_mvc/application/Bootstrap.php +++ b/airtime_mvc/application/Bootstrap.php @@ -35,6 +35,7 @@ Zend_Validate::setDefaultNamespaces("Zend"); $front = Zend_Controller_Front::getInstance(); $front->registerPlugin(new RabbitMqPlugin()); +Logging::debug($_SERVER['REQUEST_URI']); /* The bootstrap class should only be used to initialize actions that return a view. Actions that return JSON will not use the bootstrap class! */ diff --git a/airtime_mvc/application/logging/Logging.php b/airtime_mvc/application/logging/Logging.php index 01ec88240..4b23de04f 100644 --- a/airtime_mvc/application/logging/Logging.php +++ b/airtime_mvc/application/logging/Logging.php @@ -21,4 +21,11 @@ class Logging { $logger = self::getLogger(); $logger->info($p_msg); } + + public static function debug($p_msg){ + if (APPLICATION_ENV == "development"){ + $logger = self::getLogger(); + $logger->debug($p_msg); + } + } } diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 5fb3ca624..c0dee3d27 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -108,6 +108,10 @@ class Application_Model_Show { //remove everything about this show. public function deleteShow() { + //usually we hide the show-instance, but in this case we are deleting the show template + //so delete all show-instances as well. + CcShowInstancesQuery::create()->filterByDbOriginalShow($this->_showId)->delete(); + $show = CcShowQuery::create()->findPK($this->_showId); $show->delete(); }