Add the number of elements with the publishers. re #79
This commit is contained in:
parent
f8c7c4a3ef
commit
f095e9426e
2 changed files with 17 additions and 37 deletions
7
base.php
7
base.php
|
@ -1272,7 +1272,12 @@ abstract class Base
|
|||
while ($post = $result->fetchObject ())
|
||||
{
|
||||
$instance = new $category ($post);
|
||||
array_push ($entryArray, new Entry ($post->sort, $instance->getEntryId (),
|
||||
if (property_exists($post, "sort")) {
|
||||
$title = $post->sort;
|
||||
} else {
|
||||
$title = $post->name;
|
||||
}
|
||||
array_push ($entryArray, new Entry ($title, $instance->getEntryId (),
|
||||
str_format (localize("bookword", $post->count), $post->count), "text",
|
||||
array ( new LinkNavigation ($instance->getUri ())), "", $post->count));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue