diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-07-17 12:02:49 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-07-17 12:02:49 -0700 |
commit | fc919902e535646dd82fbf43caef5ac7be6aa0bb (patch) | |
tree | aa5c8ec50726bd1f2a265878113abcc1fb4d255f /htdocs | |
parent | 83255afe45c6b59ba0f6f0f0e1b9f309d18b9f6c (diff) |
Added category to post page
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/postings.php | 2 | ||||
-rw-r--r-- | htdocs/src/Post.inc.php | 2 |
2 files changed, 2 insertions, 2 deletions
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 "</h2>"; - +echo "<p>Category: " . $post->getCategory()->getName() . "</p>"; echo "<p>Date: ". date('r', $post->getTimestamp()) ."</p>"; echo "<p>Email: <a href=\"mailto:". $post->getPublicEmail() ."\">" . $post->getPublicEmail() ."</a></p>"; 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; |