@@ -96,9 +96,11 @@ |
||
96 | 96 | $baseUrl = $this->request->getBaseUrl(); |
97 | 97 | $redirectUrl = $this->removeFromBeginning($refererUrl, $baseUrl); |
98 | 98 | |
99 | - if (!$admin) //if we are not an admin, send an email to alert and add an alertBox |
|
99 | + if (!$admin) { |
|
100 | + //if we are not an admin, send an email to alert and add an alertBox |
|
100 | 101 | { |
101 | 102 | $siteConfig = $this->siteConfig->getSiteConfig(); |
103 | + } |
|
102 | 104 | $post = $this->postModel->getSinglePost($postId); |
103 | 105 | |
104 | 106 | $emailMessage = "<h1>New comment on post " . $post->title . "</a></h1>"; |