Development

#520: sfFeed.diff

You must first sign up to be able to contribute.

Ticket #520: sfFeed.diff

File sfFeed.diff, 2.7 kB (added by joey.cai@gmail.com, 3 years ago)

Patch agains r1327 that fixes typos.

  • sfFeed/lib/sfFeed.class.php

    old new  
    9393  { 
    9494    $item = new sfFeedItem(); 
    9595 
    96     $item->setItemTitle(isset($item_array['title']) ? $item_array['title'] : ''); 
    97     $item->setItemLink(isset($item_array['link']) ? $item_array['link'] : ''); 
    98     $item->setItemDescription(isset($item_array['description']) ? $item_array['description'] : ''); 
    99     $item->setItemAuthorEmail(isset($item_array['authorEmail']) ? $item_array['authorEmail'] : ''); 
    100     $item->setItemAuthorName(isset($item_array['authorName']) ? $item_array['authorName'] : ''); 
    101     $item->setItemAuthorLink(isset($item_array['authorLink']) ? $item_array['authorLink'] : ''); 
    102     $item->setItemPubdate(isset($item_array['pubdate']) ? $item_array['pubdate'] : ''); 
    103     $item->setItemComments(isset($item_array['comments']) ? $item_array['comments'] : ''); 
    104     $item->setItemUniqueId(isset($item_array['uniqueId']) ? $item_array['uniqueId'] : ''); 
    105     $item->setItemEnclosure(isset($item_array['enclosure']) ? $item_array['enclosure'] : ''); 
    106     $item->setItemCategories(isset($item_array['categories']) ? $item_array['categories'] : ''); 
     96    $item->setFeedTitle(isset($item_array['title']) ? $item_array['title'] : ''); 
     97    $item->setFeedLink(isset($item_array['link']) ? $item_array['link'] : ''); 
     98    $item->setFeedDescription(isset($item_array['description']) ? $item_array['description'] : ''); 
     99    $item->setFeedAuthorEmail(isset($item_array['authorEmail']) ? $item_array['authorEmail'] : ''); 
     100    $item->setFeedAuthorName(isset($item_array['authorName']) ? $item_array['authorName'] : ''); 
     101    $item->setFeedAuthorLink(isset($item_array['authorLink']) ? $item_array['authorLink'] : ''); 
     102    $item->setFeedPubdate(isset($item_array['pubdate']) ? $item_array['pubdate'] : ''); 
     103    $item->setFeedComments(isset($item_array['comments']) ? $item_array['comments'] : ''); 
     104    $item->setFeedUniqueId(isset($item_array['uniqueId']) ? $item_array['uniqueId'] : ''); 
     105    $item->setFeedEnclosure(isset($item_array['enclosure']) ? $item_array['enclosure'] : ''); 
     106    $item->setFeedCategories(isset($item_array['categories']) ? $item_array['categories'] : ''); 
    107107 
    108108    $this->items[] = $item; 
    109109  }