Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-04-09 03:49:28 +0300
committerPhie <phie@phie.ovh>2019-04-09 03:49:28 +0300
commit4f9f01dad50a59b88c49bb05eaf0ef928f2d092e (patch)
tree92063d3531fc017c8a81d5f58d690861cfee52ac /lib
parent967afaea02dae3f6f2dce15a745098ea91735eff (diff)
fix fshook
Diffstat (limited to 'lib')
-rw-r--r--lib/Hooks/FSHooks.php11
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();