-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathext.php
More file actions
48 lines (41 loc) · 924 Bytes
/
Copy pathext.php
File metadata and controls
48 lines (41 loc) · 924 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
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
*
* Reduce Search Index [RSI]. An extension for the phpBB Forum Software package.
*
* @copyright (c) 2020-forever, Dark❶
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace dark1\reducesearchindex;
/**
* @ignore
*/
use phpbb\extension\base;
/**
* Reduce Search Index Extension base
*/
class ext extends base
{
/** @var string Require phpBB v3.2.3 due to phpBB core events. */
const PHPBB_MIN_3_2_X = '3.2.3';
/**
* {@inheritdoc}
*/
public function is_enableable()
{
return $this->pbpbb_ver_chk();
}
/**
* phpBB Version Check.
*
* @return bool
* @access private
*/
private function pbpbb_ver_chk()
{
$config = $this->container->get('config');
$phpbb_version = phpbb_version_compare(PHPBB_VERSION, $config['version'], '>=') ? PHPBB_VERSION : $config['version'] ;
return phpbb_version_compare($phpbb_version, self::PHPBB_MIN_3_2_X, '>=');
}
}