diff options
author | Michael Hamann <michael@content-space.de> | 2013-01-21 05:22:50 -0800 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2013-01-21 05:22:50 -0800 |
commit | 2741cbf6378339e9ff87beab9e277c7d5bc810b8 (patch) | |
tree | 52cc37991f18472cc58ce8afcb26cafd057f8550 /inc/RemoteAPICore.php | |
parent | ad4665dacc59ec9fd68631764253a87d55ec05b0 (diff) | |
parent | 45c1b04dfbc6014555d58bc561e6c277a2c2dc79 (diff) | |
download | rpg-2741cbf6378339e9ff87beab9e277c7d5bc810b8.tar.gz rpg-2741cbf6378339e9ff87beab9e277c7d5bc810b8.tar.bz2 |
Merge pull request #157 from gturri/perms
wiki.getAttachments returns 'perms' according to documentation
Diffstat (limited to 'inc/RemoteAPICore.php')
-rw-r--r-- | inc/RemoteAPICore.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/RemoteAPICore.php b/inc/RemoteAPICore.php index fef0b81dd..81b211ec8 100644 --- a/inc/RemoteAPICore.php +++ b/inc/RemoteAPICore.php @@ -3,7 +3,7 @@ /** * Increased whenever the API is changed */ -define('DOKU_API_VERSION', 7); +define('DOKU_API_VERSION', 8); class RemoteAPICore { @@ -344,6 +344,8 @@ class RemoteAPICore { for($i=0; $i<$len; $i++) { unset($data[$i]['meta']); + $data[$i]['perms'] = $data[$i]['perm']; + unset($data[$i]['perm']); $data[$i]['lastModified'] = $this->api->toDate($data[$i]['mtime']); } return $data; |