Fixing language list see #6064

1.9.x
Julio Montoya 10 years ago committed by Yannick Warnier
parent a667212d82
commit 4f2ac34655
  1. 4
      main/admin/configure_homepage.php

@ -961,7 +961,7 @@ switch ($action) {
foreach ($_languages['name'] as $key => $value) { foreach ($_languages['name'] as $key => $value) {
$i++; $i++;
$lang_name = $_languages['folder'][$key]; $lang_name = $_languages['folder'][$key];
if (file_exists($homep.$topf.'_'.$lang_name.$ext)) { //if (file_exists($homep.$topf.'_'.$lang_name.$ext)) {
$html_langs = '<td width="300">'; $html_langs = '<td width="300">';
$html_langs .= '<label><input type="checkbox" id="lang" name="'.$lang_name.'" />&nbsp;'.$lang_name.'<label/>'; $html_langs .= '<label><input type="checkbox" id="lang" name="'.$lang_name.'" />&nbsp;'.$lang_name.'<label/>';
$html_langs .= '</td>'; $html_langs .= '</td>';
@ -969,7 +969,7 @@ switch ($action) {
$html_langs .= '</tr><tr>'; $html_langs .= '</tr><tr>';
} }
$form->addElement('html', $html_langs); $form->addElement('html', $html_langs);
} //}
} }
$form->addElement('html','</tr></table><br/>'); $form->addElement('html','</tr></table><br/>');
$form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"'); $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');

Loading…
Cancel
Save