hax
git-svn-id: file:///home/shish/svn/shimmie2/trunk@409 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
0c1ccb73ca
commit
278ce1e71a
@ -10,6 +10,7 @@ class Themelet {
|
|||||||
|
|
||||||
|
|
||||||
public function display_paginator($page, $base, $query, $page_number, $total_pages) {
|
public function display_paginator($page, $base, $query, $page_number, $total_pages) {
|
||||||
|
if($total_pages == 0) $total_pages = 1;
|
||||||
$body = $this->build_paginator($page_number, $total_pages, $base, $query);
|
$body = $this->build_paginator($page_number, $total_pages, $base, $query);
|
||||||
$page->add_block(new Block(null, $body, "main", 90));
|
$page->add_block(new Block(null, $body, "main", 90));
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ class Themelet {
|
|||||||
|
|
||||||
|
|
||||||
public function display_paginator($page, $base, $query, $page_number, $total_pages) {
|
public function display_paginator($page, $base, $query, $page_number, $total_pages) {
|
||||||
|
if($total_pages == 0) $total_pages = 1;
|
||||||
$body = $this->build_paginator($page_number, $total_pages, $base, $query);
|
$body = $this->build_paginator($page_number, $total_pages, $base, $query);
|
||||||
$page->add_block(new Block(null, $body, "main", 90));
|
$page->add_block(new Block(null, $body, "main", 90));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user