| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | protected function required_exts_are_ok() |
||
| 43 | { |
||
| 44 | if (!class_exists('blitze\sitemaker\ext')) |
||
| 45 | { |
||
| 46 | trigger_error($this->container->get('language')->lang('MISSING_REQUIRED_EXTENSION'), E_USER_WARNING); |
||
| 47 | } |
||
| 48 | |||
| 49 | if (!$this->container->get('ext.manager')->is_enabled('blitze/sitemaker')) |
||
| 50 | { |
||
| 51 | $this->container->get('ext.manager')->enable('blitze/sitemaker'); |
||
| 52 | } |
||
| 53 | |||
| 54 | return true; |
||
| 55 | } |
||
| 57 |