include tags in json function

This commit is contained in:
Diego Najar 2019-02-26 00:47:34 +01:00
parent 86fa5bd2b3
commit 820b1c7207
2 changed files with 3 additions and 1 deletions

@ -0,0 +1 @@
Subproject commit fe85fc4343716d558745d2236a456761756e6a08

View File

@ -255,7 +255,7 @@ class Page {
return '';
}
// Return string with tags separated by comma.
return implode(', ', $tags);
return implode(',', $tags);
}
public function json($returnsArray=false)
@ -268,6 +268,7 @@ class Page {
$tmp['type'] = $this->type();
$tmp['slug'] = $this->slug();
$tmp['date'] = $this->dateRaw();
$tmp['tags'] = $this->tags(false);
$tmp['dateUTC'] = Date::convertToUTC($this->dateRaw(), DB_DATE_FORMAT, DB_DATE_FORMAT);
$tmp['permalink'] = $this->permalink(true);
$tmp['coverImage'] = $this->coverImage(true);