mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
Merge branch 'MDL-44345-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
5f2fcc388b
@ -89,7 +89,8 @@ class repository_youtube extends repository {
|
||||
$ret['list'] = $this->_get_collection($search_text, $start, $max, $sort);
|
||||
$ret['norefresh'] = true;
|
||||
$ret['nosearch'] = true;
|
||||
$ret['pages'] = -1;
|
||||
// If the number of results is smaller than $max, it means we reached the last page.
|
||||
$ret['pages'] = (count($ret['list']) < $max) ? $ret['page'] : -1;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user