mirror of
https://github.com/Pathduck/gallery3-themes-modules.git
synced 2024-11-10 14:26:11 -05:00
more fixes for dupcheck
This commit is contained in:
parent
5532df49aa
commit
e8bfe42b3d
@ -74,15 +74,17 @@ class dupcheck_Controller extends Controller {
|
||||
->find_all($page_size, $offset);
|
||||
|
||||
// Set up the previous and next page buttons.
|
||||
if ($page > 1) {
|
||||
$previous_page = $page - 1;
|
||||
$view->previous_page_link = url::site("dupcheck/dupes?page={$previous_page}");
|
||||
}
|
||||
if ($page < $max_pages) {
|
||||
$next_page = $page + 1;
|
||||
$view->next_page_link = url::site("dupcheck/dupes?page={$next_page}");
|
||||
}
|
||||
|
||||
// Commented out for causing crash with null assigns
|
||||
/**
|
||||
* if ($page > 1) {
|
||||
* $previous_page = $page - 1;
|
||||
* $view->previous_page_link = url::site("dupcheck/dupes?page={$previous_page}");
|
||||
* }
|
||||
* if ($page < $max_pages) {
|
||||
* $next_page = $page + 1;
|
||||
* $view->next_page_link = url::site("dupcheck/dupes?page={$next_page}");
|
||||
* }
|
||||
**/
|
||||
// Set up and display the actual page.
|
||||
$template = new Theme_View("page.html", "collection", "DuplicatePhotos");
|
||||
$template->page_title = t("Gallery :: Duplicate Photos");
|
||||
|
@ -6,6 +6,8 @@
|
||||
<h1><?= html::clean($title) ?></h1>
|
||||
</div>
|
||||
|
||||
<?= $theme->paginator() ?>
|
||||
|
||||
<ul id="g-album-grid" class="ui-helper-clearfix">
|
||||
<? foreach ($children as $i => $child): ?>
|
||||
<li class="g-item <?= $child->is_album() ? "g-album" : "" ?>">
|
||||
@ -49,6 +51,7 @@ foreach( db::build()
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
<?= $theme->dynamic_bottom() ?>
|
||||
|
||||
<?= $theme->paginator() ?>
|
||||
|
||||
<?= $theme->dynamic_bottom() ?>
|
||||
|
Loading…
Reference in New Issue
Block a user