- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext.php
More file actions
Latest commit
21 lines (19 loc) · 486 Bytes
/
Copy pathext.php
File metadata and controls
21 lines (19 loc) · 486 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
namespacemacsch15\capsule;
class ext extends \phpbb\extension\base
{
/**
* Check whether or not the extension can be enabled.
* The current phpBB version should meet or exceed
* the minimum version required by this extension:
*
* Requires phpBB 3.1.3 due to usage of container aware migrations.
*
* @return bool
*/
publicfunctionis_enableable()
{
$config = $this->container->get('config');
returnphpbb_version_compare($config['version'], '3.1.3', '>=');
}
}