Skip to content
Snippets Groups Projects
Commit f3d20849 authored by Michael Hamann's avatar Michael Hamann
Browse files

Added perms and size to getRecentChanges in XML-RPC

darcs-hash:20080824100938-fdd0b-c44a74e698eab59347b315881728c6a063e8b740.gz
parent f01ff8c1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment