Conditions | 3 |
Paths | 3 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function post() |
||
26 | { |
||
27 | if (!$this->is_available()) |
||
28 | { |
||
29 | throw new http_exception(404, 'IDEAS_NOT_AVAILABLE'); |
||
30 | } |
||
31 | |||
32 | if ($this->user->data['user_id'] == ANONYMOUS) |
||
33 | { |
||
34 | throw new http_exception(404, 'LOGGED_OUT'); |
||
35 | } |
||
36 | |||
37 | $params = [ |
||
38 | 'mode' => 'post', |
||
39 | 'f' => $this->config['ideas_forum_id'], |
||
40 | ]; |
||
41 | |||
42 | $url = append_sid(generate_board_url() . "/posting.{$this->php_ext}", $params, false); |
||
43 | |||
44 | return new RedirectResponse($url); |
||
45 | } |
||
46 | } |
||
47 |