diff options
author | Michael Hamann <michael@content-space.de> | 2008-08-24 12:09:38 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2008-08-24 12:09:38 +0200 |
commit | f3d20849968e2930a311df7b592dd5009b153ac9 (patch) | |
tree | f32b3d2b4d417096e17db9d35a92083106d33d86 /lib | |
parent | f01ff8c1a9f0299f431bb7106dbdce85d0cc7dd0 (diff) | |
download | rpg-f3d20849968e2930a311df7b592dd5009b153ac9.tar.gz rpg-f3d20849968e2930a311df7b592dd5009b153ac9.tar.bz2 |
Added perms and size to getRecentChanges in XML-RPC
darcs-hash:20080824100938-fdd0b-c44a74e698eab59347b315881728c6a063e8b740.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exe/xmlrpc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php index 4666f0b7e..c2805cb01 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -654,7 +654,8 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer { if(isHiddenPage($logline['id'])) continue; // check ACL - if(auth_quickaclcheck($logline['id']) < AUTH_READ) continue; + $perms = auth_quickaclcheck($logline['id']); + if($perms < AUTH_READ) continue; // check existance if((!@file_exists(wikiFN($logline['id']))) && ($flags & RECENTS_SKIP_DELETED)) continue; @@ -665,6 +666,8 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer { $change['lastModified'] = new IXR_Date($logline['date']); $change['author'] = $logline['user']; $change['version'] = $logline['date']; + $change['perms'] = $perms; + $change['size'] = @filesize(wikiFN($logline['id'])); array_push($changes, $change); } else { $changes = array_reverse($changes); |