Fix some title again :(
This commit is contained in:
parent
393f38a281
commit
10d0cf0eb6
9
base.php
9
base.php
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue