fix path when opening document
This commit is contained in:
parent
de24ab3b8d
commit
d2e00b9aa3
@ -41,7 +41,7 @@ class View extends \OC\Files\View{
|
|||||||
throw new \Exception('Original document doesn\'t exist any more');
|
throw new \Exception('Original document doesn\'t exist any more');
|
||||||
}
|
}
|
||||||
|
|
||||||
$newName = '/' . sha1($view->file_get_contents($path)) . '.odt';
|
$newName = '/' . sha1($view->file_get_contents($relPath)) . '.odt';
|
||||||
|
|
||||||
$view->copy($relPath, self::OFFICE_DIRNAME . $newName);
|
$view->copy($relPath, self::OFFICE_DIRNAME . $newName);
|
||||||
\OC_FileProxy::$enabled = $proxyStatus;
|
\OC_FileProxy::$enabled = $proxyStatus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user