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; - } ?>