BUG: source selection does not work with cfrss::addLastAddedMedia() BUG: source selection does not work with cfrss::addLastAddedMedia()
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

BUG: source selection does not work with cfrss::addLastAddedMedia()

Started by divestoclimb, June 11, 2009, 05:01:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

divestoclimb

I know this one's a bug.

In cfrssget.php, the method used to generate the feed items for the last added media is:

function addLastAddedMedia($count,$source="") {
$results = $this->cpm->cpm_viewLastAddedMedia($count,1,$source);
$this->generateFeedFromResults($results);
}

You're calling the wrong function and passing $source as the $options argument. This code should be:

function addLastAddedMedia($count,$source="") {
$results = $this->cpm->cpm_viewLastAddedMediaFrom($source,$count,1);
$this->generateFeedFromResults($results);
}