mkae getRelativePath of file search results overwriteable in subclasses

remotes/origin/fix-10825
Jörn Friedrich Dreyer 11 years ago
parent eea5c2ee0a
commit 8f11019f45
  1. 3
      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);
}
}

Loading…
Cancel
Save