include category name on JSON method

This commit is contained in:
Diego Najar 2019-11-05 21:51:46 +01:00
parent 142159a8e9
commit c7c8998367

View File

@ -273,6 +273,7 @@ class Page {
$tmp['dateRaw'] = $this->dateRaw();
$tmp['tags'] = $this->tags(false);
$tmp['username'] = $this->username();
$tmp['category'] = $this->category();
$tmp['dateUTC'] = Date::convertToUTC($this->dateRaw(), DB_DATE_FORMAT, DB_DATE_FORMAT);
$tmp['permalink'] = $this->permalink(true);
$tmp['coverImage'] = $this->coverImage(true);