Fix some title again :(

This commit is contained in:
Sébastien Lucas 2013-01-05 18:19:56 +01:00
parent 393f38a281
commit 10d0cf0eb6
1 changed files with 7 additions and 2 deletions

View File

@ -319,9 +319,9 @@ class PageAllAuthorsLetter extends Page
{ {
global $config; global $config;
$this->title = str_format (localize ("splitByLetter.letter"), localize ("authorword.title"), $this->idGet);
$this->idPage = Author::getEntryIdByLetter ($this->idGet); $this->idPage = Author::getEntryIdByLetter ($this->idGet);
$this->entryArray = Author::getAuthorsByStartingLetter ($this->idGet); $this->entryArray = Author::getAuthorsByStartingLetter ($this->idGet);
$this->title = str_format (localize ("splitByLetter.letter"), str_format (localize ("authorword", count ($this->entryArray)), count ($this->entryArray)), $this->idGet);
} }
} }
@ -392,9 +392,14 @@ class PageAllBooksLetter extends Page
{ {
public function InitializeContent () public function InitializeContent ()
{ {
$this->title = str_format (localize ("splitByLetter.letter"), localize ("bookword.title"), $this->idGet);
list ($this->entryArray, $this->totalNumber) = Book::getBooksByStartingLetter ($this->idGet, $this->n); list ($this->entryArray, $this->totalNumber) = Book::getBooksByStartingLetter ($this->idGet, $this->n);
$this->idPage = Book::getEntryIdByLetter ($this->idGet); $this->idPage = Book::getEntryIdByLetter ($this->idGet);
$count = $this->totalNumber;
if ($count == -1)
$count = count ($this->entryArray);
$this->title = str_format (localize ("splitByLetter.letter"), str_format (localize ("bookword", $count), $count), $this->idGet);
} }
} }