Modified:
development/4.x/textpattern/include/txp_prefs.php
Log:
Set $auto_dst-related globals when $auto_dst prefs is posted, so the
subsequent prefs_list() works with the correct value in $prefs['auto_dst'].
Modified: development/4.x/textpattern/include/txp_prefs.php
==============================================================================
--- development/4.x/textpattern/include/txp_prefs.php (original)
+++ development/4.x/textpattern/include/txp_prefs.php Wed Jun 24 06:20:23
2009
@@ -52,11 +52,12 @@
$tzd = $tz->details();
if (isset($tzd[$key]))
{
- global $prefs, $gmtoffset, $is_dst, $timezone_key;
+ global $prefs, $gmtoffset, $is_dst, $auto_dst, $timezone_key;
$prefs['timezone_key'] = $timezone_key = $key;
$post['gmtoffset'] = $prefs['gmtoffset'] = $gmtoffset =
$tzd[$key]['offset'];
if (gps('auto_dst'))
{
+ $prefs['auto_dst'] = $auto_dst = $post['auto_dst'];
$post['is_dst'] = $prefs['is_dst'] = $is_dst =
timezone::is_dst(time(), $key);
}
}