Fix bad content type .... Thanks to Didier.
This commit is contained in:
parent
3e98615ea9
commit
2877d70729
|
@ -39,7 +39,7 @@ class language extends Base {
|
||||||
$nLanguages = parent::getDb ()->query('select count(*) from languages')->fetchColumn();
|
$nLanguages = parent::getDb ()->query('select count(*) from languages')->fetchColumn();
|
||||||
if ($nLanguages == 0) return NULL;
|
if ($nLanguages == 0) return NULL;
|
||||||
$entry = new Entry (localize("languages.title"), self::ALL_LANGUAGES_ID,
|
$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)));
|
array ( new LinkNavigation ("?page=".parent::PAGE_ALL_LANGUAGES)));
|
||||||
return $entry;
|
return $entry;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ order by languages.lang_code');
|
||||||
{
|
{
|
||||||
$language = new Language ($post->id, $post->lang_code);
|
$language = new Language ($post->id, $post->lang_code);
|
||||||
array_push ($entryArray, new Entry (Language::getLanguageString ($language->lang_code), $language->getEntryId (),
|
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 ()))));
|
array ( new LinkNavigation ($language->getUri ()))));
|
||||||
}
|
}
|
||||||
return $entryArray;
|
return $entryArray;
|
||||||
|
|
Loading…
Reference in a new issue