From: Thijs K. <ki...@us...> - 2004-12-27 21:09:11
|
Update of /cvsroot/squirrelmail/squirrelmail/include/options In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30818/include/options Modified Files: Tag: SM-1_4-STABLE display.php Log Message: Javascript detection was broken when you changed your setting from never to autodetect. Fixes: #983614 Index: display.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/include/options/display.php,v retrieving revision 1.4.2.16 retrieving revision 1.4.2.17 diff -u -w -r1.4.2.16 -r1.4.2.17 --- display.php 27 Dec 2004 15:03:48 -0000 1.4.2.16 +++ display.php 27 Dec 2004 21:08:58 -0000 1.4.2.17 @@ -371,7 +371,9 @@ * This function saves the javascript detection option. */ function save_option_javascript_autodetect($option) { - global $data_dir, $username, $new_javascript_setting; + global $data_dir, $username; + + $new_javascript_setting = $_POST['new_javascript_setting']; /* Set javascript either on or off. */ if ($new_javascript_setting == SMPREF_JS_AUTODETECT) { |