mkae getRelativePath of file search results overwriteable in subclasses

remotes/origin/fix-10825
Jörn Friedrich Dreyer 2014-07-14 19:27:10 +07:00
parent eea5c2ee0a
commit 8f11019f45
1 changed files with 1 additions and 2 deletions

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