[feature/mod_version_check] Remove old version check and introduce new one

This commit is contained in:
Marc Alexander
2013-10-30 00:26:16 +01:00
parent 6747625a5c
commit 7b130f2c49
3 changed files with 4 additions and 230 deletions

View File

@@ -21,12 +21,12 @@ class phpbb_ext_board3_portal_acp_portal_module
public $new_config = array();
protected $c_class;
protected $db, $user, $cache, $template, $display_vars, $config, $phpbb_root_path, $portal_root_path, $phpbb_admin_path, $phpEx;
protected $root_path;
protected $root_path, $mod_version_check;
public function __construct()
{
global $db, $user, $cache, $template;
global $config, $phpbb_root_path, $portal_root_path, $phpbb_admin_path, $phpEx;
global $config, $phpbb_root_path, $portal_root_path, $phpbb_admin_path, $phpbb_container, $phpEx;
$user->add_lang_ext('board3/portal', 'mods/portal');
@@ -44,17 +44,13 @@ class phpbb_ext_board3_portal_acp_portal_module
$this->phpbb_admin_path = $phpbb_admin_path;
$this->portal_root_path = $this->root_path . 'portal/';
$this->php_ex = $phpEx;
$this->mod_version_check = $phpbb_container->get('board3.version.check');
if (!function_exists('column_string_const'))
{
include($this->portal_root_path . 'includes/functions_modules.' . $this->php_ex);
}
if (!function_exists('mod_version_check'))
{
include($this->portal_root_path . 'includes/functions_version_check.' . $this->php_ex);
}
if(!function_exists('obtain_portal_config'))
{
include($this->portal_root_path . 'includes/functions.' . $this->php_ex);
@@ -159,7 +155,7 @@ class phpbb_ext_board3_portal_acp_portal_module
else
{
// only show the mod version check if we are on the General Settings page
mod_version_check($this->phpbb_root_path, $this->root_path);
$this->mod_version_check->version_check();
}
$this->new_config = $this->config;