fixed prob with localised list and not already loaded translations: setup was only installing the first language on upgrad of an app, as the translate-call changed the db-cursor

This commit is contained in:
Ralf Becker 2004-04-13 14:19:52 +00:00
parent 0c9e59afaf
commit 0e649819d8

View File

@ -201,7 +201,11 @@
}
while ($this->db->next_record())
{
$this->langs[$this->db->f('lang')] = $this->translate($this->db->f('lang_name'),False,'');
$this->langs[$this->db->f('lang')] = $this->db->f('lang_name');
}
foreach($this->langs as $lang => $name)
{
$this->langs[$lang] = $this->translate($name,False,'');
}
}
return $this->langs;