Fix language if it is not found in the i18n. Reported by le_
This commit is contained in:
parent
4aa3529131
commit
c84cec9516
3 changed files with 15 additions and 4 deletions
2
book.php
2
book.php
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue