-
Notifications
You must be signed in to change notification settings - Fork 4
/
ext.php
40 lines (35 loc) · 926 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
35
36
37
38
39
40
<?php
/**
*
* @package Auto db Backup (3.2)
* @copyright (c) 2015 david63
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace david63\autodbbackup;
use phpbb\extension\base;
class ext extends base
{
const AUTO_DB_BACKUP_VERSION = '2.1.0 RC5';
/**
* Enable extension if phpBB version requirement is met
*
* @var string Require 3.2.0-a1 due to updated 3.2 syntax
*
* @return bool
* @access public
*/
public function is_enableable()
{
$config = $this->container->get('config');
if (!phpbb_version_compare($config['version'], '3.2.0', '>='))
{
$this->container->get('language')->add_lang('ext_autodbbackup', 'david63/autodbbackup');
trigger_error($this->container->get('language')->lang('VERSION_32') . adm_back_link(append_sid('index.' . $this->container->getParameter('core.php_ext'), 'i=acp_extensions&mode=main')), E_USER_WARNING);
}
else
{
return true;
}
}
}