reuse function provided in util.php
This commit is contained in:
parent
6beeb2466f
commit
73157133e8
1 changed files with 1 additions and 4 deletions
|
@ -297,10 +297,7 @@ class Proxy extends \OC_FileProxy {
|
|||
$util = new Util( $view, $userId );
|
||||
|
||||
// Format path to be relative to user files dir
|
||||
$trimmed = ltrim( $path, '/' );
|
||||
$split = explode( '/', $trimmed );
|
||||
$sliced = array_slice( $split, 2 );
|
||||
$relPath = implode( '/', $sliced );
|
||||
$relPath = $util->stripUserFilesPath($path);
|
||||
|
||||
list($owner, $ownerPath) = $util->getUidAndFilename($relPath);
|
||||
|
||||
|
|
Loading…
Reference in a new issue