Browse Source

Cvascript detection was broken when you changed your setting from never
to autodetect. Fixes: #983614

Thijs Kinkhorst 20 years ago
parent
commit
f4f0728bde
2 changed files with 3 additions and 1 deletions
  1. 2 0
      ChangeLog
  2. 1 1
      functions/page_header.php

+ 2 - 0
ChangeLog

@@ -169,6 +169,8 @@ Version 1.5.1 -- CVS
     Fixes #1085377.
   - Reuploaded newmail plugin sounds. Fixes files uploaded to cvs without binary 
     option.
+  - Changing your JavaScript preference required a re-login to work.
+    Fixes #983614.
 
 Version 1.5.0
 --------------------

+ 1 - 1
functions/page_header.php

@@ -160,7 +160,7 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) {
     $session = 0;
     }
 
-    if($javascript_on) {
+    if( $javascript_on || strpos($xtra, 'new_js_autodetect_results.value') ) {
 
       switch ( $module ) {
         case 'src/read_body.php':