converting all charsets to lowercase

This commit is contained in:
Ralf Becker 2003-10-06 11:30:21 +00:00
parent a057b014d1
commit 6e69d6965f

View File

@ -89,11 +89,11 @@
if (!isset($this->charsets[$lang]))
{
$this->db->query("SELECT content FROM phpgw_lang WHERE lang='$lang' AND message_id='charset' AND app_name='common'",__LINE__,__FILE__);
$this->charsets[$lang] = $this->db->next_record() ? $this->db->f(0) : 'iso-8859-1';
$this->charsets[$lang] = $this->db->next_record() ? strtolower($this->db->f(0)) : 'iso-8859-1';
}
return $this->charsets[$lang];
}
return $this->system_charset ? $this->system_charset : $this->translate('charset');
return $this->system_charset ? $this->system_charset : strtolower($this->translate('charset'));
}
function init()
@ -212,7 +212,7 @@
}
while ($this->db->next_record())
{
$data = &$this->charsets[$charset = $this->db->f('charset')];
$data = &$this->charsets[$charset = strtolower($this->db->f('charset'))];
$data .= ($data ? ', ' : $charset.': ').
$this->db->f('lang_name').' ('.$this->db->f('lang').')';
}