From 9b6f8f1c118797fb371a012b0962c97ebffe7aff Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 6 Mar 2021 17:40:35 +0100 Subject: [PATCH] Download limit json rest api --- module/download/download.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/download/download.php b/module/download/download.php index ac21653e..bcebbf77 100644 --- a/module/download/download.php +++ b/module/download/download.php @@ -919,7 +919,14 @@ class download extends common { } } foreach ($itemIds as $key) { - self::$items[$key] = $this->getData(['module', $this->getUrl(0), 'items', $key]); + self::$items[$key] = [ + $this->getData(['module', $this->getUrl(0), 'items', $key, 'title']), + $this->getData(['module', $this->getUrl(0), 'items', $key, 'content']), + $this->getData(['module', $this->getUrl(0), 'items', $key, 'picture']), + $this->getData(['module', $this->getUrl(0), 'items', $key, 'file']), + $this->getData(['module', $this->getUrl(0), 'items', $key, 'fileVersion']), + $this->getData(['module', $this->getUrl(0), 'items', $key, 'fileDate']) + ]; } $this->addOutput([ 'display' => self::DISPLAY_JSON,