Index: branches/5.3.x/core/units/helpers/modules_helper.php =================================================================== diff -u -N -r15698 -r15962 --- branches/5.3.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 15698) +++ branches/5.3.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 15962) @@ -1,6 +1,6 @@ get('License') ? base64_decode($system_config->get('License')) : false; + if ($license) { list ( , , $i_Keys) = $this->_ParseLicense($license); - $domain = $this->_GetDomain($vars); + $domain = $this->_GetDomain($system_config); if (!$this->_IsLocalSite($domain)) { for ($x = 0; $x < count($i_Keys); $x++) { $key = $i_Keys[$x]; @@ -204,7 +205,7 @@ // all modules starting from "in-" doesn't require license $base_modules = Array ('Core', 'In-Portal', 'Custom'); - $modules = array_merge($modules, $base_modules, $this->_getFreeModules($vars)); + $modules = array_merge($modules, $base_modules, $this->_getFreeModules($system_config)); $modules = array_unique( array_map('strtolower', $modules) ); return $modules; @@ -213,13 +214,13 @@ /** * Get all modules, that don't require licensing * - * @param Array $vars + * @param kSystemConfig $system_config * @return Array * @access protected */ - protected function _getFreeModules($vars) + protected function _getFreeModules(kSystemConfig $system_config) { - $domain = $this->_GetDomain($vars); + $domain = $this->_GetDomain($system_config); $modules = array_map('strtolower', $this->getModules()); if ( !$this->_IsLocalSite($domain) ) { @@ -244,12 +245,12 @@ /** * Returns domain from licences (and direct in case of install script) * - * @param Array $vars + * @param kSystemConfig $system_config * @return string */ - function _GetDomain($vars) + function _GetDomain(kSystemConfig $system_config) { - return isset($vars['Domain']) ? $vars['Domain'] : SERVER_NAME; + return $system_config->get('Domain', SERVER_NAME); } function _keyED($txt, $encrypt_key)