Fix incorrect handling of path separator on Windows systems

This commit is contained in:
Kijin Sung 2016-04-01 14:47:34 +09:00
parent d81998c588
commit 921d7d8568
3 changed files with 4 additions and 6 deletions

View file

@ -541,9 +541,7 @@ class installController extends install
foreach($module_list as $module_path)
{
// Get module name
$tmp_arr = explode('/',$module_path);
$module = $tmp_arr[count($tmp_arr)-1];
$module = basename($module_path);
$xml_info = $oModuleModel->getModuleInfoXml($module);
if(!$xml_info) continue;
$modules[$xml_info->category][] = $module;