Skip to content

Commit

Permalink
Merge pull request kaltura#5411 from kaltura/Lynx-12.14.0-PLAT-7150
Browse files Browse the repository at this point in the history
fix for getfeed and new XSLT
  • Loading branch information
noam-arad authored Apr 4, 2017
2 parents 64cb80b + 90b8e34 commit e946244
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions api_v3/lib/syndication/KalturaFeedRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ class KalturaFeedRenderer extends SyndicationFeedRenderer{
protected $kalturaXsltItem = null;

private $state = null;

public function init($syndicationFeed, $syndicationFeedDB, $mimeType) {
parent::init($syndicationFeed, $syndicationFeedDB, $mimeType);

$xslt = $syndicationFeedDB->getXslt();
if (($syndicationFeedDB->getType() == syndicationFeedType::KALTURA_XSLT) && (!is_null($xslt))) {

$allXSLTSyndicationFeeds = array(syndicationFeedType::KALTURA_XSLT, syndicationFeedType::ROKU_DIRECT_PUBLISHER, syndicationFeedType::OPERA_TV_SNAP);

$xslt = $syndicationFeed->xslt;
if (in_array($syndicationFeedDB->getType(), $allXSLTSyndicationFeeds) && !is_null($xslt)) {
$this->kalturaXslt = $this->createKalturaMrssXslt($xslt);
$this->kalturaXsltItem = $this->createKalturaItemXslt($xslt);
}
Expand Down

0 comments on commit e946244

Please sign in to comment.