[svn r21678] Minor - There's not need to change the charset of the LP name (a.k.a first section in a LP)

skala
Julio Montoya 16 years ago
parent 51ca38cb7e
commit ce9226cbb3
  1. 13
      main/newscorm/learnpath.class.php

@ -6546,10 +6546,17 @@ class learnpath {
}
}
$parent_select = & $form->addElement('select', 'parent', get_lang('Parent'), '', 'class="learnpath_item_form" style="width:40%;" onchange="load_cbo(this.value);"');
$my_count=0;
foreach ($arrHide as $key => $value) {
$value['value'] = Security :: remove_XSS(api_convert_encoding($value['value'], api_get_system_encoding(), $this->encoding));
$parent_select->addOption($value['value'], $key, 'style="padding-left:' . $value['padding'] . 'px;"');
if ($my_count!=0) {
// the LP name is also the first section and is not in the same charset like the other sections
$value['value'] = Security :: remove_XSS(api_convert_encoding($value['value'], api_get_system_encoding(), $this->encoding));
$parent_select->addOption($value['value'], $key, 'style="padding-left:' . $value['padding'] . 'px;"');
} else {
$value['value'] = Security :: remove_XSS($value['value']);
$parent_select->addOption($value['value'], $key, 'style="padding-left:' . $value['padding'] . 'px;"');
}
$my_count++;
}
if (!empty ($id)) {

Loading…
Cancel
Save