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
1 changed files with 1 additions and 0 deletions

View File

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