From fc919902e535646dd82fbf43caef5ac7be6aa0bb Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sun, 17 Jul 2011 12:02:49 -0700 Subject: Added category to post page --- htdocs/postings.php | 2 +- htdocs/src/Post.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'htdocs') diff --git a/htdocs/postings.php b/htdocs/postings.php index b275858..8dc42cc 100644 --- a/htdocs/postings.php +++ b/htdocs/postings.php @@ -69,7 +69,7 @@ if ($post->getPrice() != 0) { echo ""; - +echo "

Category: " . $post->getCategory()->getName() . "

"; echo "

Date: ". date('r', $post->getTimestamp()) ."

"; echo "

Email: getPublicEmail() ."\">" . $post->getPublicEmail() ."

"; diff --git a/htdocs/src/Post.inc.php b/htdocs/src/Post.inc.php index 888a5fa..906778e 100644 --- a/htdocs/src/Post.inc.php +++ b/htdocs/src/Post.inc.php @@ -213,7 +213,7 @@ class Post { public function getCategory() { if ($this->category == NULL) { - $this->category = Categories::getById($this->info['category_id']); + $this->category = Category::getById($this->info['category_id']); } return $this->category; -- cgit v1.2.3