aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Remote
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2024-01-06 13:15:21 +0100
committerAndreas Gohr <andi@splitbrain.org>2024-01-07 13:41:19 +0100
commit9e6b19e66227f00ffd05524f28765c3dbcfc4977 (patch)
tree4ff8dbd1af329dc8117718f29392c103580400c0 /inc/Remote
parent5bef72bebde6cbb2c0e9bce79395caaa5c16345b (diff)
downloaddokuwiki-9e6b19e66227f00ffd05524f28765c3dbcfc4977.tar.gz
dokuwiki-9e6b19e66227f00ffd05524f28765c3dbcfc4977.zip
API: fix listPages
Not all needed fields are returned by the search callback
Diffstat (limited to 'inc/Remote')
-rw-r--r--inc/Remote/ApiCore.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/Remote/ApiCore.php b/inc/Remote/ApiCore.php
index 379b77bd2..ae96bd098 100644
--- a/inc/Remote/ApiCore.php
+++ b/inc/Remote/ApiCore.php
@@ -242,6 +242,7 @@ class ApiCore
* @param int $depth How deep to search. 0 for all subnamespaces
* @param bool $hash Whether to include a MD5 hash of the page content
* @return Page[] A list of matching pages
+ * @todo might be a good idea to replace search_allpages with search_universal
*/
public function listPages($namespace = '', $depth = 1, $hash = false)
{
@@ -271,9 +272,9 @@ class ApiCore
$item['id'],
0, // we're searching current revisions only
$item['mtime'],
- $item['title'],
+ '', // not returned by search_allpages
$item['size'],
- $item['perm'],
+ null, // not returned by search_allpages
$item['hash'] ?? ''
), $data);
}