diff --git a/README.md b/README.md index 321685f..7170d94 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # attribute Arbitrary attribute definition and storage for user associated data. -See detail on: (I hope) https://www.dokuwiki.org/plugin:attribute +See detail on: https://www.dokuwiki.org/plugin:attribute diff --git a/helper.php b/helper.php index 4222038..5addb4b 100644 --- a/helper.php +++ b/helper.php @@ -21,7 +21,7 @@ public function __construct() { $this->loadConfig(); // Create the path used for attribute data. $path = substr($this->conf['store'], 0, 1) == '/' ? $this->conf['store'] : DOKU_INC . $this->conf['store']; - $this->storepath = ($this->conf['store'] === '' || !is_dir($path)) ? null : $path; + $this->storepath = ($this->conf['store'] === '' || !io_mkdir_p($path)) ? null : $path; // A directory is needed. if(is_null($this->storepath)) { msg("Attribute: Configuration item 'store' is not set to a writeable directory.", -1); @@ -395,8 +395,7 @@ public function del($namespace, $attribute, $user = null) { $result = false; } - $lock = $namespace . '.' . $user; - io_lock($lock); + io_unlock($lock); return $result; } diff --git a/plugin.info.txt b/plugin.info.txt index 4a3fe42..fed1f97 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -4,10 +4,10 @@ author Michael Wilmes email mwilmes@avc.edu -date 2015-09-03 +date 2015-09-10 name attribute plugin desc Arbitrary attribute definition and storage for user associated data. -url None at this time, would like https://www.dokuwiki.org/plugin:attribute +url https://www.dokuwiki.org/plugin:attribute