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

mkae getRelativePath of file search results overwriteable in subclasses

parent eea5c2ee
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
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