diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-09-17 01:48:31 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-09-17 01:48:31 +0000 |
commit | cc12d640519a673d1a422cc608ca6ec1a59ef46e (patch) | |
tree | 988c8cb507ee9561d5b96f30974dbb2753c426b6 /admin | |
parent | 7ea85bc0355c7ad60c51a4a1d3078e3dc4603031 (diff) |
- 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
Diffstat (limited to '')
-rw-r--r-- | admin/history.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 |