-
Notifications
You must be signed in to change notification settings - Fork 14
/
ext.php
30 lines (27 loc) · 675 Bytes
/
ext.php
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
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
*
* @copyright (c) 2018 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace vse\lightbox;
/**
* Extension class for custom enable/disable/purge actions
*/
class ext extends \phpbb\extension\base
{
/** @var string Require 3.2.1 due to event update subarray */
const PHPBB_MIN_VERSION = '3.2.1';
const PHPBB_MAX_VERSION = '4.0.0-dev';
/**
* {@inheritdoc}
*/
public function is_enableable()
{
return phpbb_version_compare(PHPBB_VERSION, self::PHPBB_MIN_VERSION, '>=')
&& phpbb_version_compare(PHPBB_VERSION, self::PHPBB_MAX_VERSION, '<');
}
}