* 'manage' => (string) link to file manager,
* 'nologin' => (bool) requires login,
* 'nosearch' => (bool) no search link,
- * 'search_result' => (bool) this list is a searching result,
* 'upload' => array( // upload manager
* 'name' => (string) label of the form element,
* 'id' => (string) id of the form element
break;
case 'search':
try {
- echo json_encode($repo->search($search_text));
+ $search_result = $repo->search($search_text);
+ $search_result['search_result'] = true;
+ echo json_encode($search_result);
} catch (repository_exception $e) {
$err = new stdclass;
$err->e = $e->getMessage();