Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: BUG: source selection does not work with cfrss::addLastAddedMedia()  (Read 3065 times)

0 Members and 1 Guest are viewing this topic.

divestoclimb

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 16

I know this one's a bug.

In cfrssget.php, the method used to generate the feed items for the last added media is:
Code: [Select]
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:
Code: [Select]
function addLastAddedMedia($count,$source="") {
$results = $this->cpm->cpm_viewLastAddedMediaFrom($source,$count,1);
$this->generateFeedFromResults($results);
}
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.