[ticket/454] Remove constants.php

B3P-454
This commit is contained in:
Marc Alexander
2015-02-01 01:54:44 +01:00
parent cbe947fba4
commit f1b77b1a2b
6 changed files with 13 additions and 33 deletions

View File

@@ -74,6 +74,9 @@ class helper
*/
protected $portal_modules;
/** @var int Board3 module disabled */
const B3_MODULE_DISABLED = 0;
/**
* Constructor
* NOTE: The parameters of this method must match in order and type with
@@ -139,7 +142,7 @@ class helper
public function get_portal_module($row)
{
// Do not try to load non-existent or disabled modules
if ($row['module_status'] == B3_MODULE_DISABLED || !is_object($module = $this->portal_helper->get_module($row['module_classname'])))
if ($row['module_status'] == self::B3_MODULE_DISABLED || !is_object($module = $this->portal_helper->get_module($row['module_classname'])))
{
return false;
}

View File

@@ -116,7 +116,6 @@ class main
if (!function_exists('obtain_portal_config'))
{
include($this->includes_path . 'constants' . $this->php_ext);
include($this->includes_path . 'functions_modules' . $this->php_ext);
include($this->includes_path . 'functions' . $this->php_ext);
}