| Conditions | 3 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | protected function handle() : Template\Block { |
||
| 42 | |||
| 43 | # Create form |
||
| 44 | |||
| 45 | $this->form = new static::$form_class; |
||
| 46 | |||
| 47 | # Handle form |
||
| 48 | |||
| 49 | if ($this->form->handle(new static::$controller_class, true)) { |
||
| 50 | |||
| 51 | Request::redirect(INSTALL_PATH . (static::$url . '?submitted')); |
||
| 52 | } |
||
| 53 | |||
| 54 | # Display success message |
||
| 55 | |||
| 56 | if (false !== Request::get('submitted')) Popup::set('positive', Language::get('SETTINGS_SUCCESS')); |
||
| 57 | |||
| 58 | # ------------------------ |
||
| 59 | |||
| 60 | return $this->getContents(); |
||
| 61 | } |
||
| 62 | } |
||
| 64 |