From f3d20849968e2930a311df7b592dd5009b153ac9 Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Sun, 24 Aug 2008 12:09:38 +0200 Subject: Added perms and size to getRecentChanges in XML-RPC darcs-hash:20080824100938-fdd0b-c44a74e698eab59347b315881728c6a063e8b740.gz --- lib/exe/xmlrpc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.3