Cover image for API

This commit is contained in:
Diego Najar 2018-01-23 17:40:27 +01:00
parent 40db0c6377
commit c10586568f

View File

@ -298,8 +298,10 @@ class Page {
$tmp['date'] = $this->dateRaw();
$tmp['dateUTC'] = Date::convertToUTC($this->dateRaw(), DB_DATE_FORMAT, DB_DATE_FORMAT);
$tmp['permalink'] = $this->permalink(true);
$tmp['coverImage'] = $this->coverImage(true);
$tmp['coverImageFilename'] = $this->coverImage(false);
if($returnsArray) {
if ($returnsArray) {
return $tmp;
}