-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathext.php
More file actions
37 lines (34 loc) · 871 Bytes
/
ext.php
File metadata and controls
37 lines (34 loc) · 871 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
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
*
* Best Answer. An extension for the phpBB Forum Software package.
*
* @copyright (c) 2017, kinerity, https://www.layer-3.org
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace kinerity\bestanswer;
/**
* Best Answer Extension base
*
* It is recommended to remove this file from
* an extension if it is not going to be used.
*/
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.2.2 and PHP 5.4.0.
*
* @return bool
* @access public
*/
public function is_enableable()
{
$config = $this->container->get('config');
return phpbb_version_compare($config['version'], '3.2.2', '>=') && version_compare(PHP_VERSION, '5.4.0', '>=');
}
}