| @@ 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()) { |
|
| @@ 1222-1232 (lines=11) @@ | ||
| 1219 | array('id' => $this->game->getIdentifier()) |
|
| 1220 | ) |
|
| 1221 | ); |
|
| 1222 | } else { |
|
| 1223 | $this->flashMessenger()->setNamespace('zfcuser-login-form')->addMessage( |
|
| 1224 | 'Authentication failed. Please try again.' |
|
| 1225 | ); |
|
| 1226 | return $this->redirect()->toUrl( |
|
| 1227 | $this->frontendUrl()->fromRoute( |
|
| 1228 | $this->game->getClassType().'/login', |
|
| 1229 | array('id' => $this->game->getIdentifier()) |
|
| 1230 | ) |
|
| 1231 | ); |
|
| 1232 | } |
|
| 1233 | } |
|
| 1234 | ||
| 1235 | $redirect = $this->frontendUrl()->fromRoute( |
|