summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/legacy/search/provider.php4
-rw-r--r--search/js/result.js3
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/legacy/search/provider.php b/lib/private/legacy/search/provider.php
index d200c988c45..b296aeb23d8 100644
--- a/lib/private/legacy/search/provider.php
+++ b/lib/private/legacy/search/provider.php
@@ -17,6 +17,10 @@
*
*/
+/**
+ * Class OC_Search_Provider
+ * @deprecated use \OCP\Search\Provider instead
+ */
abstract class OC_Search_Provider extends \OCP\Search\Provider {
}
diff --git a/search/js/result.js b/search/js/result.js
index 04e999c62ee..857b4fe1f22 100644
--- a/search/js/result.js
+++ b/search/js/result.js
@@ -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 = '/';