mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
"MDL-24534, fixed filepicker pagnation, credits to Gerwood Stewart"
This commit is contained in:
parent
e80451e835
commit
29199e56f8
@ -115,7 +115,7 @@ case 'search':
|
||||
echo '<div><a href="' . $home_url->out() . '">'.get_string('back', 'repository')."</a></div>";
|
||||
try {
|
||||
$search_result = $repo->search($search_text);
|
||||
$search_result['search_result'] = true;
|
||||
$search_result['issearchresult'] = true;
|
||||
$search_result['repo_id'] = $repo_id;
|
||||
|
||||
// TODO: need a better solution
|
||||
|
@ -1405,7 +1405,7 @@ abstract class repository {
|
||||
* perpage, items per page
|
||||
* page
|
||||
* pages, total pages
|
||||
* search_result, is it a search result?
|
||||
* issearchresult, is it a search result?
|
||||
* list, file list
|
||||
* path, current path and parent path
|
||||
*/
|
||||
|
@ -154,7 +154,7 @@ switch ($action) {
|
||||
case 'search':
|
||||
$search_result = $repo->search($search_text, (int)$page);
|
||||
$search_result['repo_id'] = $repo_id;
|
||||
$search_result['search_result'] = true;
|
||||
$search_result['issearchresult'] = true;
|
||||
echo json_encode($search_result);
|
||||
break;
|
||||
case 'download':
|
||||
|
Loading…
x
Reference in New Issue
Block a user