mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Add missing check of current db versions
This commit is contained in:
parent
12b66fb8a9
commit
3fefd7be60
@ -42,13 +42,18 @@
|
||||
$submit = True;
|
||||
}
|
||||
|
||||
$setup_info = $phpgw_setup->get_versions();
|
||||
$setup_info = $phpgw_setup->get_db_versions($setup_info);
|
||||
|
||||
if($phpgw_setup->alessthanb($setup_info['phpgwapi']['currentver'], '0.9.15.002'))
|
||||
{
|
||||
$langtbl = 'lang';
|
||||
$langtbl = 'lang';
|
||||
$langstbl = 'languages';
|
||||
}
|
||||
else
|
||||
{
|
||||
$langtbl = 'phpgw_lang';
|
||||
$langtbl = 'phpgw_lang';
|
||||
$langstbl = 'phpgw_languages';
|
||||
}
|
||||
|
||||
if ($HTTP_POST_VARS['submit'])
|
||||
@ -172,7 +177,7 @@
|
||||
|
||||
$select_box_desc = lang('Select which languages you would like to use');
|
||||
$select_box = '';
|
||||
$phpgw_setup->db->query("select lang_id,lang_name from languages where available='Yes'");
|
||||
$phpgw_setup->db->query("select lang_id,lang_name from $langstbl where available='Yes'");
|
||||
while ($phpgw_setup->db->next_record())
|
||||
{
|
||||
$select_box_langs =
|
||||
|
Loading…
Reference in New Issue
Block a user