| @@ 62-77 (lines=16) @@ | ||
| 59 | ) |
|
| 60 | ) |
|
| 61 | ); |
|
| 62 | } else { |
|
| 63 | $this->flashMessenger()->addMessage( |
|
| 64 | $this->getServiceLocator()->get('MvcTranslator')->translate('Your Post is waiting for validation') |
|
| 65 | ); |
|
| 66 | ||
| 67 | return $this->redirect()->toUrl( |
|
| 68 | $this->frontendUrl()->fromRoute( |
|
| 69 | 'postvote/post', |
|
| 70 | array( |
|
| 71 | 'id' => $this->game->getIdentifier(), |
|
| 72 | 'post' => $postId, |
|
| 73 | ||
| 74 | ) |
|
| 75 | ) |
|
| 76 | ); |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||
| 80 | if (! $this->game->getForm()) { |
|
| @@ 1185-1195 (lines=11) @@ | ||
| 1182 | array('id' => $this->game->getIdentifier()) |
|
| 1183 | ) |
|
| 1184 | ); |
|
| 1185 | } else { |
|
| 1186 | $this->flashMessenger()->setNamespace('zfcuser-login-form')->addMessage( |
|
| 1187 | 'Authentication failed. Please try again.' |
|
| 1188 | ); |
|
| 1189 | return $this->redirect()->toUrl( |
|
| 1190 | $this->frontendUrl()->fromRoute( |
|
| 1191 | $this->game->getClassType().'/login', |
|
| 1192 | array('id' => $this->game->getIdentifier()) |
|
| 1193 | ) |
|
| 1194 | ); |
|
| 1195 | } |
|
| 1196 | } |
|
| 1197 | ||
| 1198 | $redirect = $this->frontendUrl()->fromRoute( |
|