mkae getRelativePath of file search results overwriteable in subclasses
This commit is contained in:
parent
eea5c2ee0a
commit
8f11019f45
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue