-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext.php
34 lines (29 loc) · 885 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
31
32
33
34
<?php
/**
*
* @package phpBB Extension - Page Scroller
* @copyright (c) Igor Peshkov (dark_diesel) <https://plus.google.com/+IgorPeshkov>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
* For full copyright and license information, contact with developer
*/
namespace darkdiesel\pagescroller;
/**
* Extension class for custom enable/disable/purge actions
*/
class ext extends \phpbb\extension\base
{
/** @var string Require 3.1.2 due to updated INCLUDECSS syntax */
const PHPBB_VERSION = '3.1.2';
const DARKDIESEL_PAGESCROLLER_ROOT_PATH = 'ext/darkdiesel/pagescroller/';
/**
* Enable extension if phpBB minimum version requirement is met
*
* @return bool
*/
public function is_enableable()
{
$config = $this->container->get('config');
return phpbb_version_compare($config['version'], self::PHPBB_VERSION, '>=');
}
}