summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-01-21 05:22:50 -0800
committerMichael Hamann <michael@content-space.de>2013-01-21 05:22:50 -0800
commit2741cbf6378339e9ff87beab9e277c7d5bc810b8 (patch)
tree52cc37991f18472cc58ce8afcb26cafd057f8550 /inc
parentad4665dacc59ec9fd68631764253a87d55ec05b0 (diff)
parent45c1b04dfbc6014555d58bc561e6c277a2c2dc79 (diff)
downloadrpg-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')
-rw-r--r--inc/RemoteAPICore.php4
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;