Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function is_enableable() |
||
24 | { |
||
25 | // Require minimum phpBB version. |
||
26 | $is_enableable = phpbb_version_compare(PHPBB_VERSION, self::PHPBB_MIN_VERSION, '>='); |
||
27 | |||
28 | // If not enableable, add our custom install error language keys |
||
29 | if (!$is_enableable) |
||
30 | { |
||
31 | $lang = $this->container->get('language'); |
||
32 | $lang->add_lang('tip_install', 'vse/topicimagepreview'); |
||
33 | } |
||
34 | |||
35 | return $is_enableable; |
||
36 | } |
||
37 | } |
||
38 |