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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Hooks/FSHooks.php')
-rw-r--r--lib/Hooks/FSHooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Hooks/FSHooks.php b/lib/Hooks/FSHooks.php
index 45d902d..51c036b 100644
--- a/lib/Hooks/FSHooks.php
+++ b/lib/Hooks/FSHooks.php
@@ -31,7 +31,7 @@ class FSHooks {
if(substr($node->getName(), -3) === "sqd"){ // to avoid getting carnet's path each time a file is writen
//we check if is in our path
- if(substr($node->getPath(), 0, strlen($this->folder)) === $this->folder){
+ if(substr($node->getPath(), 0, strlen($this->carnetFolder->getPath())) === $this->carnetFolder->getPath()){
$relativePath = substr($node->getPath(), strlen($this->carnetFolder->getPath()));
if(substr($relativePath, 0, 1) === "/")
$relativePath = substr($relativePath, 1);