From c7c8998367de62545bec8940a1acbba4cb44b4ba Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Tue, 5 Nov 2019 21:51:46 +0100 Subject: [PATCH] include category name on JSON method --- bl-kernel/pagex.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bl-kernel/pagex.class.php b/bl-kernel/pagex.class.php index 60da93c0..08da653b 100644 --- a/bl-kernel/pagex.class.php +++ b/bl-kernel/pagex.class.php @@ -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);