@@ -22,5 +22,5 @@ |
||
| 22 | 22 | const FRONT_PAGE_POSTS = 3; |
| 23 | 23 | const POSTS_PER_PAGE = 10; |
| 24 | 24 | |
| 25 | - const EXCERPT_WORD_COUNT =50; |
|
| 25 | + const EXCERPT_WORD_COUNT = 50; |
|
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |
@@ -124,10 +124,10 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | //checking result and redirecting |
| 126 | 126 | if ($postId != null) { |
| 127 | - $this->alertBox->setAlert("Post " . $title . " Created"); |
|
| 128 | - $this->container->getResponse()->redirect("admin/post/modify/" . $postSlug); |
|
| 127 | + $this->alertBox->setAlert("Post ".$title." Created"); |
|
| 128 | + $this->container->getResponse()->redirect("admin/post/modify/".$postSlug); |
|
| 129 | 129 | } |
| 130 | - $this->alertBox->setAlert("Error creating " . $title, "error"); |
|
| 130 | + $this->alertBox->setAlert("Error creating ".$title, "error"); |
|
| 131 | 131 | $this->container->getResponse()->redirect("admin/post/new"); |
| 132 | 132 | |
| 133 | 133 | } |
@@ -206,10 +206,10 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | //checking result and redirecting |
| 208 | 208 | if ($postUpdate) { |
| 209 | - $this->alertBox->setAlert("Post " . $title . " Updated"); |
|
| 210 | - $this->container->getResponse()->redirect("admin/post/modify/" . $postSlug); |
|
| 209 | + $this->alertBox->setAlert("Post ".$title." Updated"); |
|
| 210 | + $this->container->getResponse()->redirect("admin/post/modify/".$postSlug); |
|
| 211 | 211 | } |
| 212 | - $this->alertBox->setAlert("Error updating " . $title, "error"); |
|
| 213 | - $this->container->getResponse()->redirect("admin/post/modify/" . $originalPostSlug); |
|
| 212 | + $this->alertBox->setAlert("Error updating ".$title, "error"); |
|
| 213 | + $this->container->getResponse()->redirect("admin/post/modify/".$originalPostSlug); |
|
| 214 | 214 | } |
| 215 | 215 | } |
| 216 | 216 | \ No newline at end of file |