| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | static function admin___save_settings ($Request) { |
||
| 31 | $data = $Request->data('posts_per_page', 'max_sections', 'enable_comments', 'new_posts_only_from_admins', 'allow_iframes_without_content'); |
||
| 32 | if (!$data) { |
||
| 33 | throw new ExitException(400); |
||
| 34 | } |
||
| 35 | if (!Config::instance()->module('Blogs')->set($data)) { |
||
| 36 | throw new ExitException(500); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 |