Frontend tweaks to podcasting + new abstract datatables functionality

This commit is contained in:
Duncan Sommerville 2015-09-21 12:40:05 -04:00
parent 3db20bd3b5
commit 373ff55923
10 changed files with 82 additions and 66 deletions

View file

@ -73,10 +73,6 @@ class Podcast extends BasePodcast
$podcastArray["episodes"] = array();
foreach ($rss->item as $item) {
// Same as above, we need to explicitly cast the SimpleXMLElement 'array' into an actual array
foreach($item as $k => $v) {
$array[$k] = (string)$v;
}
array_push($podcastArray["episodes"], $item);
}
return $podcastArray;
@ -113,10 +109,6 @@ class Podcast extends BasePodcast
$podcastArray["episodes"] = array();
foreach ($rss->item as $item) {
// Same as above, we need to explicitly cast the SimpleXMLElement 'array' into an actual array
foreach($item as $k => $v) {
$array[$k] = (string)$v;
}
array_push($podcastArray["episodes"], $item);
}