forked from DrDeath/phpbb-ext-f1webtip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext.php
More file actions
25 lines (21 loc) · 677 Bytes
/
ext.php
File metadata and controls
25 lines (21 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* @copyright (c) 2014 Dr.Death - www.lpi-clan.de
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*/
namespace drdeath\f1webtip;
class ext extends \phpbb\extension\base
{
/**
* Check the phpBB version to determine if this extension can be enabled.
* F1WebTipp drops support for phpBB 3.1.x
* Supports only phpBB version >= 3.2.8 and < 3.4.
*
* @return bool
*/
public function is_enableable()
{
$config = $this->container->get('config');
return phpbb_version_compare($config['version'], '3.2.8', '>=') && phpbb_version_compare($config['version'], '3.4', '<');
}
}