diff --git a/plugin/Gallery/view/mainAreaCategory.php b/plugin/Gallery/view/mainAreaCategory.php
index a5faac4e0..ecdac1d90 100644
--- a/plugin/Gallery/view/mainAreaCategory.php
+++ b/plugin/Gallery/view/mainAreaCategory.php
@@ -1,64 +1,65 @@
CategoriesRowCount * 3;
$videos = Video::getAllVideos("viewableNotUnlisted", false, !$obj->hidePrivateVideos);
if (!empty($videos)) {
?>
CategoriesRowCount * 3;
$_GET['catName'] = $currentCat['clean_name'];
$total = Video::getTotalVideos("viewableNotUnlisted", false, !$obj->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");
?>