diff options
author | Phie <phie@phie.ovh> | 2019-03-07 19:53:33 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-03-07 19:53:33 +0300 |
commit | 016665e9d74d63adc0f76e72ec0746267b3337d2 (patch) | |
tree | 85f93aa0ec0e49af89bc88e22b016831948388ce | |
parent | 57fc475621f65534c1786b5020a66efab6144895 (diff) |
quick fix + bump 0.13.1vv0.13.1
-rw-r--r-- | appinfo/database.xml | 1 | ||||
-rwxr-xr-x | appinfo/info.xml | 2 | ||||
-rw-r--r-- | lib/Hooks/FSHooks.php | 2 | ||||
m--------- | templates/CarnetElectron | 0 |
4 files changed, 3 insertions, 2 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 @@ <field> <name>path</name> </field> + <name>indexpath</name> <unique>true</unique> </index> <field> 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]]></description> - <version>0.13.0</version> + <version>0.13.1</version> <licence>agpl</licence> <author mail="phie@phie.ovh" >Phie</author> <namespace>Carnet</namespace> 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 -Subproject 8cf44927597f4ff190a58fbd630538483958c14 +Subproject 6bc1cc9bc669af0b80cf7e5096ca2e0e7b3aa61 |