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 --- appinfo/database.xml | 1 + appinfo/info.xml | 2 +- lib/Hooks/FSHooks.php | 2 +- templates/CarnetElectron | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appinfo/database.xml b/appinfo/database.xml index 41fc691..9823b41 100644 --- a/appinfo/database.xml +++ b/appinfo/database.xml @@ -17,6 +17,7 @@ path + indexpath true diff --git a/appinfo/info.xml b/appinfo/info.xml index eeeee1c..968cb7b 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -18,7 +18,7 @@ Mac, with sync capabilities - Statistics : words/sentences/characters - Sync with NextCloud - Online editor as a NextCloud App]]> - 0.13.0 + 0.13.1 agpl Phie Carnet 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); diff --git a/templates/CarnetElectron b/templates/CarnetElectron index 8cf4492..6bc1cc9 160000 --- a/templates/CarnetElectron +++ b/templates/CarnetElectron @@ -1 +1 @@ -Subproject commit 8cf44927597f4ff190a58fbd630538483958c14b +Subproject commit 6bc1cc9bc669af0b80cf7e5096ca2e0e7b3aa61f -- cgit v1.2.3