From cc12d640519a673d1a422cc608ca6ec1a59ef46e Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 17 Sep 2008 01:48:31 +0000 Subject: - fix status header (web services + IE6 min display) - sql optims in feed /notification - dont send cookie for 10 years from admin/history.php git-svn-id: http://piwigo.org/svn/trunk@2543 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/history.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'admin/history.php') diff --git a/admin/history.php b/admin/history.php index 02b321055..222deaaf1 100644 --- a/admin/history.php +++ b/admin/history.php @@ -116,7 +116,8 @@ if (isset($_POST['submit'])) $search['fields']['display_thumbnail'] = $_POST['display_thumbnail']; // Display choise are also save to one cookie - pwg_set_cookie_var('history_display_thumbnail', $_POST['display_thumbnail']); + $cookie_val = ($_POST['display_thumbnail']!=$display_thumbnails[2] and in_array($_POST['display_thumbnail'], $display_thumbnails)) ? $_POST['display_thumbnail']:null; + pwg_set_cookie_var('history_display_thumbnail', $cookie_val, strtotime('+1 month') ); // TODO manage inconsistency of having $_POST['image_id'] and // $_POST['filename'] simultaneously -- cgit v1.2.3