diff options
Diffstat (limited to 'lib/Hooks/FSHooks.php')
-rw-r--r-- | lib/Hooks/FSHooks.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Hooks/FSHooks.php b/lib/Hooks/FSHooks.php index a07f2ee..de8244c 100644 --- a/lib/Hooks/FSHooks.php +++ b/lib/Hooks/FSHooks.php @@ -21,10 +21,10 @@ class FSHooks { $this->appName = $appName; $this->db = $connection; $this->folder = $this->Config->getUserValue($this->userId, $this->appName, "note_folder"); - if(empty($folder)) - $folder= 'Documents/QuickNote'; + if(empty($this->folder)) + $this->folder= NoteUtils::$defaultCarnetNotePath; try{ - $this->carnetFolder = $UserFolder->get($folder); + $this->carnetFolder = $UserFolder->get($this->folder); } catch (\OCP\Files\NotFoundException $e){ $this->carnetFolder = null; } @@ -64,10 +64,7 @@ class FSHooks { } if($this->isMine($node)){ try{ - - /*if(NoteController::$lastWrite === $node->getPath()){ - return; //was already handled in save - }*/ + $relativePath = $this->getRelativePath($node->getPath()); $cacheManager = new CacheManager($this->db, $this->carnetFolder); $utils = new NoteUtils(); |