mkae getRelativePath of file search results overwriteable in subclasses

This commit is contained in:
Jörn Friedrich Dreyer 2014-07-14 19:27:10 +02:00
parent eea5c2ee0a
commit 8f11019f45
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}