From d2e00b9aa332f8e968c12ee37eaa2a50612606f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 23 Aug 2013 15:52:34 +0200 Subject: [PATCH] fix path when opening document --- lib/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view.php b/lib/view.php index 511d4f73..89a9dea5 100644 --- a/lib/view.php +++ b/lib/view.php @@ -41,7 +41,7 @@ class View extends \OC\Files\View{ 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); \OC_FileProxy::$enabled = $proxyStatus;