Fix language if it is not found in the i18n. Reported by le_

This commit is contained in:
Sébastien Lucas 2013-07-29 10:10:54 +02:00
parent 4aa3529131
commit c84cec9516
3 changed files with 15 additions and 4 deletions

View file

@ -227,7 +227,7 @@ class Book extends Base {
$result->execute (array ($this->id));
while ($post = $result->fetchObject ())
{
array_push ($lang, localize("languages.".$post->lang_code));
array_push ($lang, Language::getLanguageString($post->lang_code));
}
return implode (", ", $lang);
}