Merge branch 'saas-dev-publishing' into saas-dev-publishing-episode-view

This commit is contained in:
Duncan Sommerville 2015-11-09 10:21:38 -05:00
commit ef5fd271e0
4 changed files with 134 additions and 16 deletions

View file

@ -56,6 +56,12 @@ class IndexController extends Zend_Controller_Action
foreach ($episodes as $e => $v) {
$episodes[$e]["CcFiles"]["track_title"] = htmlspecialchars($v["CcFiles"]["track_title"], ENT_QUOTES);
$episodes[$e]["CcFiles"]["artist_name"] = htmlspecialchars($v["CcFiles"]["artist_name"], ENT_QUOTES);
$pubDate = explode(" ", $v["publication_date"]);
$episodes[$e]["publication_date"] = $pubDate[0];
$length = explode(".", $v["CcFiles"]["length"]);
$episodes[$e]["CcFiles"]["length"] = $length[0];
}
$this->view->episodes = json_encode($episodes);