Этот коммит содержится в:
Sébastien Lucas 2013-01-05 18:19:56 +01:00
родитель 393f38a281
Коммит 10d0cf0eb6
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -319,9 +319,9 @@ class PageAllAuthorsLetter extends Page
{
global $config;
$this->title = str_format (localize ("splitByLetter.letter"), localize ("authorword.title"), $this->idGet);
$this->idPage = Author::getEntryIdByLetter ($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 ()
{
$this->title = str_format (localize ("splitByLetter.letter"), localize ("bookword.title"), $this->idGet);
list ($this->entryArray, $this->totalNumber) = Book::getBooksByStartingLetter ($this->idGet, $this->n);
$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);
}
}