diff --git a/plugin/Gallery/view/modeGalleryCategory.php b/plugin/Gallery/view/modeGalleryCategory.php index 66162df79..47a5a52ff 100644 --- a/plugin/Gallery/view/modeGalleryCategory.php +++ b/plugin/Gallery/view/modeGalleryCategory.php @@ -1,78 +1,82 @@ CategoriesShowOnlySuggested; if(!empty(getSearchVar())){ $onlySuggested = false; } - +$sort = $_POST['sort']; +unset($_POST['sort']); $categories = Category::getAllCategories(false, true, $onlySuggested); $total = Category::getTotalCategories(false, true, $onlySuggested); $totalPages = ceil($total / getRowCount()); $page = getCurrentPage(); if ($totalPages < $page) { $page = $totalPages; } $link = "{$global['webSiteRootURL']}plugin/Gallery/view/modeGalleryCategory.php?tags_id=" . intval(@$_GET['tagsid']) . "&search=" . htmlentities(urlencode(getSearchVar())) . "¤t={page}"; if (empty($categories)) { return false; } $_REQUEST['current'] = 1; $_REQUEST['rowCount'] = $obj->CategoriesRowCount; ?>
doNotShowLiveOnCategoryList)) { $currentCat = $_cat; include $global['systemRootPath'] . 'plugin/Gallery/view/modeGalleryCategoryLive.php'; } unset($_POST['sort']); $_POST['sort']['v.created'] = "DESC"; $_POST['sort']['likes'] = "DESC"; $videos = Video::getAllVideos("viewableNotUnlisted", false, !$obj->hidePrivateVideos); if (empty($videos)) { continue; } if (empty($_cat['clean_name'])) { continue; } ?>

-
\ No newline at end of file + + \ No newline at end of file