reuse function provided in util.php

This commit is contained in:
Björn Schießle 2013-03-26 16:22:26 +01:00
parent 6beeb2466f
commit 73157133e8

View file

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