little optimization : i18n is only transfered one time. re #73

This commit is contained in:
Sébastien Lucas 2013-06-16 15:21:21 +02:00
parent b49432e3e1
commit fccb7a9820
3 changed files with 5 additions and 2 deletions

View file

@ -54,7 +54,8 @@
$out ["maxPage"] = $currentPage->getMaxPage ();
$out ["currentPage"] = $currentPage->n;
}
$out ["i18n"] = array ("coverAlt" => localize("i18n.coversection"),
if (!is_null (getURLParam ("complete"))) {
$out ["i18n"] = array ("coverAlt" => localize("i18n.coversection"),
"authorsTitle" => localize("authors.title"),
"bookwordTitle" => localize("bookword.title"),
"tagsTitle" => localize("tags.title"),
@ -72,6 +73,7 @@
"contentTitle" => localize("content.summary"),
"sortorderAsc" => localize("search.sortorder.asc"),
"sortorderDesc" => localize("search.sortorder.desc"));
}
$out ["containsBook"] = 0;
if ($currentPage->containsBook ()) {