Skip to content
Snippets Groups Projects
Commit 8fbcca12 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

Merge pull request #9419 from owncloud/fix_search_results_in_root_dir

Fix search results in root dir & deprecate OC_Search_Provider
parents c7e08745 b56f5f27
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,10 @@
*
*/
/**
* Class OC_Search_Provider
* @deprecated use \OCP\Search\Provider instead
*/
abstract class OC_Search_Provider extends \OCP\Search\Provider {
}
......@@ -72,6 +72,9 @@ OC.search.showResults=function(results){
if (type[i].path) {
var parent = OC.dirname(type[i].path);
if (parent === '') {
parent = '/';
}
var containerName = OC.basename(parent);
if (containerName === '') {
containerName = '/';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment