mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-68954 repository_flickr_public: Return only photo media
This commit is contained in:
parent
e58db3a8fd
commit
e8017491d1
@ -296,13 +296,15 @@ class repository_flickr_public extends repository {
|
||||
$text = !empty($SESSION->{$this->sess_text}) ? $SESSION->{$this->sess_text} : null;
|
||||
$nsid = !empty($this->nsid) ? $this->nsid : null;
|
||||
|
||||
$photos = $this->flickr->photos_search(array(
|
||||
'tags'=>$tag,
|
||||
'page'=>$page,
|
||||
'per_page'=>24,
|
||||
'user_id'=>$nsid,
|
||||
'license'=>$licenses,
|
||||
'text'=>$text
|
||||
$photos = $this->flickr->photos_search(
|
||||
array(
|
||||
'tags' => $tag,
|
||||
'page' => $page,
|
||||
'per_page' => 24,
|
||||
'user_id' => $nsid,
|
||||
'license' => $licenses,
|
||||
'text' => $text,
|
||||
'media' => 'photos'
|
||||
)
|
||||
);
|
||||
$ret['total'] = $photos['total'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user