diff --git a/plugin/Gallery/view/mainAreaCategory.php b/plugin/Gallery/view/mainAreaCategory.php index 5b8ad093d..a5faac4e0 100644 --- a/plugin/Gallery/view/mainAreaCategory.php +++ b/plugin/Gallery/view/mainAreaCategory.php @@ -1,63 +1,64 @@ CategoriesRowCount * 3; $videos = Video::getAllVideos("viewableNotUnlisted", false, !$obj->hidePrivateVideos); if (!empty($videos)) { - $total = Video::getTotalVideos("viewableNotUnlisted", false, !$obj->hidePrivateVideos); - $totalPages = ceil($total / getRowCount()); - $page = getCurrentPage(); - if ($totalPages < $page) { - $page = $totalPages; - } ?>

hidePrivateVideos); + $totalPages = ceil($total / getRowCount()); + $page = getCurrentPage(); + if ($totalPages < $page) { + $page = $totalPages; + } $categoryURL = "{$global['webSiteRootURL']}cat/{$currentCat['clean_name']}/page/"; //getPagination($total, $page = 0, $link = "", $maxVisible = 10, $infinityScrollGetFromSelector="", $infinityScrollAppendIntoSelector="") echo getPagination($totalPages, $page, "{$categoryURL}{page}{$args}", 10, ".Div{$currentCat['clean_name']}Section", ".Div{$currentCat['clean_name']}Section"); ?>