diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-12-01 01:46:32 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-12-01 01:46:32 +0000 |
commit | b2de3c32ee635788f2f34c98d529fdc167ca6a51 (patch) | |
tree | 8ab638b5c8d705a012686fadd9fca492029bb661 /include/section_init.inc.php | |
parent | 7111d867b9e85b8656563f3febafae1d8d365435 (diff) |
- sessions are always started (even for visitors)
- thumbnail order saved in the session instead of cookie
git-svn-id: http://piwigo.org/svn/trunk@1623 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r-- | include/section_init.inc.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 7e3f87cfe..416d98849 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -297,15 +297,13 @@ while (isset($tokens[$i])) // By default, it is the same as the $user['nb_image_page'] $page['nb_image_page'] = $user['nb_image_page']; -if (isset($_COOKIE['pwg_image_order']) - and is_numeric($_COOKIE['pwg_image_order']) - and $_COOKIE['pwg_image_order'] > 0) +if (pwg_get_session_var('image_order',0) > 0) { $orders = get_category_preferred_image_orders(); $conf['order_by'] = str_replace( 'ORDER BY ', - 'ORDER BY '.$orders[ $_COOKIE['pwg_image_order'] ][1].',', + 'ORDER BY '.$orders[ pwg_get_session_var('image_order',0) ][1].',', $conf['order_by'] ); $page['super_order_by'] = true; |