Fix bad content type .... Thanks to Didier.

This commit is contained in:
Sébastien Lucas 2013-10-10 14:10:47 +02:00
parent 3e98615ea9
commit 2877d70729
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class language extends Base {
$nLanguages = parent::getDb ()->query('select count(*) from languages')->fetchColumn();
if ($nLanguages == 0) return NULL;
$entry = new Entry (localize("languages.title"), self::ALL_LANGUAGES_ID,
str_format (localize("languages.alphabetical", $nLanguages), $nLanguages), "text non",
str_format (localize("languages.alphabetical", $nLanguages), $nLanguages), "text",
array ( new LinkNavigation ("?page=".parent::PAGE_ALL_LANGUAGES)));
return $entry;
}
@ -66,7 +66,7 @@ order by languages.lang_code');
{
$language = new Language ($post->id, $post->lang_code);
array_push ($entryArray, new Entry (Language::getLanguageString ($language->lang_code), $language->getEntryId (),
str_format (localize("bookword", $post->count), $post->count), "text non",
str_format (localize("bookword", $post->count), $post->count), "text",
array ( new LinkNavigation ($language->getUri ()))));
}
return $entryArray;