Index: branches/5.2.x/core/units/helpers/modules_helper.php =================================================================== diff -u -N -r14244 -r14628 --- branches/5.2.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 14244) +++ branches/5.2.x/core/units/helpers/modules_helper.php (.../modules_helper.php) (revision 14628) @@ -1,6 +1,6 @@ Application->recallObject('Session'); + /* @var $session Session */ + return $session->CookiesEnabled; } @@ -196,27 +198,30 @@ /** * Get all modules, that don't require licensing * + * @param Array $vars * @return Array + * @access protected */ - function _getFreeModules($vars) + protected function _getFreeModules($vars) { $skip_modules = Array ('.', '..'); $domain = $this->_GetDomain($vars); - if (!$this->_IsLocalSite($domain)) { - array_push($skip_modules, 'in-commerce', 'in-auction'); - } + if ( !$this->_IsLocalSite($domain) ) { + array_push($skip_modules, 'in-commerce', 'in-auction'); + } $ret = Array (); - $folder = dir(MODULES_PATH); + $folder = dir(MODULES_PATH); - if ($folder === false) { - return Array (); - } + if ( $folder === false ) { + return Array (); + } - while (($entry = $folder->read()) !== false) { + while ( ($entry = $folder->read()) !== false ) { $entry_lowercased = strtolower($entry); - if (!is_dir($folder->path . '/' . $entry) || in_array($entry_lowercased, $skip_modules)) { + + if ( !is_dir($folder->path . '/' . $entry) || in_array($entry_lowercased, $skip_modules) ) { continue; }