From 100568bfbb64fc88a4c491cb9ca9f8bf39970389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Goetz?= Date: Fri, 22 May 2015 16:35:20 +0200 Subject: [PATCH] Preload more data in getList --- libs/Format/Confluence/Api.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/Format/Confluence/Api.php b/libs/Format/Confluence/Api.php index 04a7d1e..a82d9c8 100644 --- a/libs/Format/Confluence/Api.php +++ b/libs/Format/Confluence/Api.php @@ -82,7 +82,9 @@ class Api */ public function getList($rootPage) { - $url = "content/$rootPage/child/page?expand=version"; + //We do a limit of 15 as it appears that confluence has + //a bug when retrieving more than 20 entries with "body.storage" + $url = "content/$rootPage/child/page?expand=version,body.storage&limit=15"; $pages = []; @@ -98,6 +100,7 @@ class Api "id" => $result['id'], "title" => $result['title'], "version" => $result['version']['number'], + "content" => $result['body']['storage']['value'], ]; }