Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/modules_helper.php
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Line(s) | |||||
* Get all modules, that don't require licensing | * Get all modules, that don't require licensing | ||||
* | * | ||||
* @param Array $vars | * @param Array $vars | ||||
* @return Array | * @return Array | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function _getFreeModules($vars) | protected function _getFreeModules($vars) | ||||
{ | { | ||||
$domain = $this->_GetDomain($vars); | return array_map('strtolower', $this->getModules()); | ||||
$modules = array_map('strtolower', $this->getModules()); | |||||
if ( !$this->_IsLocalSite($domain) ) { | |||||
return array_diff($modules, Array ('in-commerce', 'in-auction')); | |||||
} | |||||
return $modules; | |||||
} | } | ||||
/** | /** | ||||
* Allows to determine if module is licensed | * Allows to determine if module is licensed | ||||
* | * | ||||
* @param string $name | * @param string $name | ||||
* @return bool | * @return bool | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 257 Lines • ▼ Show 20 Line(s) | |||||
* @param string $folder_path | * @param string $folder_path | ||||
* @return bool | * @return bool | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public static function isInPortalModule($folder_path) | public static function isInPortalModule($folder_path) | ||||
{ | { | ||||
return file_exists($folder_path . '/install.php') && file_exists($folder_path . '/install/install_schema.sql'); | return file_exists($folder_path . '/install.php') && file_exists($folder_path . '/install/install_schema.sql'); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |