From 016665e9d74d63adc0f76e72ec0746267b3337d2 Mon Sep 17 00:00:00 2001 From: Phie Date: Thu, 7 Mar 2019 17:53:33 +0100 Subject: quick fix + bump 0.13.1 --- lib/Hooks/FSHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Hooks') 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); -- cgit v1.2.3