From 8f11019f4562ba2eb483421f3a62c7f7f7db0ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 14 Jul 2014 19:27:10 +0200 Subject: [PATCH] mkae getRelativePath of file search results overwriteable in subclasses --- lib/private/search/result/file.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/private/search/result/file.php b/lib/private/search/result/file.php index 38acac48ed..331fdaa383 100644 --- a/lib/private/search/result/file.php +++ b/lib/private/search/result/file.php @@ -92,10 +92,9 @@ class File extends \OCP\Search\Result { * @param string $path * @return string relative path */ - function getRelativePath ($path) { + protected function getRelativePath ($path) { $root = \OC::$server->getUserFolder(); return $root->getRelativePath($path); - } }