aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r--include/functions_category.inc.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 908f297d6..370ab48e6 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -617,22 +617,17 @@ SELECT COUNT(DISTINCT(id)) AS count
create_navigation_bar( $url, $page['cat_nb_images'], $page['start'],
$user['nb_image_page'], 'back' );
}
-
+
if ($page['cat'] != 'most_visited' and $page['cat'] != 'best_rated')
{
$available_image_orders = get_category_preferred_image_orders();
-
+
$order_idx=0;
- if ( isset($_GET['image_order']) )
- {
- $order_idx = $_GET['image_order'];
- setcookie( 'pwg_image_order', $order_idx, 0 );
- }
- else if ( isset($_COOKIE['pwg_image_order']) )
+ if ( isset($_COOKIE['pwg_image_order']) )
{
$order_idx = $_COOKIE['pwg_image_order'];
}
-
+
if ( $order_idx > 0 )
{
$order = $available_image_orders[$order_idx][1];