@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $totalPosts = $this->postModel->totalNumberFullPosts(); |
82 | 82 | $pagination = $this->pagination->getPagination($page, $totalPosts, $postsPerPage); |
83 | 83 | |
84 | - if($postsPerPage !== $defaultPostsPerpage){ |
|
84 | + if ($postsPerPage !== $defaultPostsPerpage) { |
|
85 | 85 | $this->data['paginationPostsPerPage'] = $postsPerPage; |
86 | 86 | } |
87 | 87 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $onFrontpage = $posts["isOnFrontPage"]; |
137 | 137 | $idUser = $userSessionId; |
138 | 138 | |
139 | - if(!is_int($idUser) || $idUser === null) |
|
139 | + if (!is_int($idUser) || $idUser === null) |
|
140 | 140 | { |
141 | 141 | throw new \Error("Invalid userID"); |
142 | 142 | } |
@@ -170,10 +170,10 @@ discard block |
||
170 | 170 | |
171 | 171 | //checking result and redirecting |
172 | 172 | if ($postId != null) { |
173 | - $this->alertBox->setAlert("Post " . $title . " Created"); |
|
174 | - $this->container->getResponse()->redirect("admin/post/modify/" . $postSlug); |
|
173 | + $this->alertBox->setAlert("Post ".$title." Created"); |
|
174 | + $this->container->getResponse()->redirect("admin/post/modify/".$postSlug); |
|
175 | 175 | } |
176 | - $this->alertBox->setAlert("Error creating " . $title, "error"); |
|
176 | + $this->alertBox->setAlert("Error creating ".$title, "error"); |
|
177 | 177 | $this->container->getResponse()->redirect("admin/post/new"); |
178 | 178 | |
179 | 179 | } |
@@ -242,10 +242,10 @@ discard block |
||
242 | 242 | |
243 | 243 | //checking result and redirecting |
244 | 244 | if ($postUpdate) { |
245 | - $this->alertBox->setAlert("Post " . $title . " Updated"); |
|
246 | - $this->container->getResponse()->redirect("admin/post/modify/" . $postSlug); |
|
245 | + $this->alertBox->setAlert("Post ".$title." Updated"); |
|
246 | + $this->container->getResponse()->redirect("admin/post/modify/".$postSlug); |
|
247 | 247 | } |
248 | - $this->alertBox->setAlert("Error updating " . $title, "error"); |
|
249 | - $this->container->getResponse()->redirect("admin/post/modify/" . $originalPostSlug); |
|
248 | + $this->alertBox->setAlert("Error updating ".$title, "error"); |
|
249 | + $this->container->getResponse()->redirect("admin/post/modify/".$originalPostSlug); |
|
250 | 250 | } |
251 | 251 | } |
252 | 252 | \ No newline at end of file |