@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $postModel = new PostModel($this->container); |
50 | 50 | $slugModel = new SlugModel($this->container); |
51 | 51 | |
52 | - $postId = $slugModel->getIdFromSlug($slug,"posts","posts_slug", "idposts"); |
|
52 | + $postId = $slugModel->getIdFromSlug($slug, "posts", "posts_slug", "idposts"); |
|
53 | 53 | |
54 | 54 | $this->data['post'] = $postModel->getSinglePost($postId); |
55 | 55 | $this->data['postTags'] = $tagModel->getTagsOnPost($postId); |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | $tagModel->addNewTagToPost($postId, $tag["name"]); |
120 | 120 | } |
121 | 121 | } |
122 | - $this->alertBox->setAlert("Post " . $title . " Created"); |
|
123 | - $this->container->getResponse()->redirect("admin/post/modify/" . $postSlug); |
|
122 | + $this->alertBox->setAlert("Post ".$title." Created"); |
|
123 | + $this->container->getResponse()->redirect("admin/post/modify/".$postSlug); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |