mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 19:02:14 +09:00
Issue 1321 fixed languages of module install and update
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10310 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3257297dbb
commit
fab30803b4
6 changed files with 46 additions and 15 deletions
|
|
@ -313,15 +313,24 @@
|
|||
$module_list = $oModuleModel->getModuleList();
|
||||
if(is_array($module_list))
|
||||
{
|
||||
$isUpdated = false;
|
||||
$needUpdate = false;
|
||||
$addTables = false;
|
||||
foreach($module_list AS $key=>$value)
|
||||
{
|
||||
if($value->need_install || $value->need_update)
|
||||
$isUpdated = true;
|
||||
if($value->need_install)
|
||||
{
|
||||
$addTables = true;
|
||||
}
|
||||
if($value->need_update)
|
||||
{
|
||||
$needUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Context::set('module_list', $module_list);
|
||||
Context::set('isUpdated', $isUpdated);
|
||||
Context::set('needUpdate', $isUpdated);
|
||||
Context::set('addTables', $addTables);
|
||||
Context::set('needUpdate', $needUpdate);
|
||||
|
||||
// gathering enviroment check
|
||||
$mainVersion = join('.', array_slice(explode('.', __ZBXE_VERSION__), 0, 2));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue