Issue 2177 refining module.model.php getModuleList().

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10947 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2012-07-26 16:18:07 +00:00
parent 8fdc8f2852
commit 967d9c399d

View file

@ -1130,17 +1130,17 @@
if(!is_dir(FileHandler::getRealPath($path))) continue;
// Get the number of xml files to create a table in schemas
$tmp_files = FileHandler::readDir($path."schemas", '/(\.xml)$/');
$tmp_files = FileHandler::readDir($path.'schemas', '/(\.xml)$/');
$table_count = count($tmp_files);
// Check if the table is created
$created_table_count = 0;
for($j=0;$j<count($tmp_files);$j++) {
list($table_name) = explode(".",$tmp_files[$j]);
for($j=0;$j<$table_count;$j++) {
list($table_name) = explode('.',$tmp_files[$j]);
if($oDB->isTableExists($table_name)) $created_table_count ++;
}
// Get information of the module
$info = NULL;
$info = $this->getModuleInfoXml($module_name);
unset($obj);
$info->module = $module_name;
$info->category = $info->category;