Browse Source

Download limit json rest api

10504
fredtempez 7 months ago
parent
commit
9b6f8f1c11
  1. 9
      module/download/download.php

9
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,

Loading…
Cancel
Save