From: <jon...@us...> - 2012-10-10 17:40:23
|
Revision: 43371 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=43371&view=rev Author: jonnybradley Date: 2012-10-10 17:40:17 +0000 (Wed, 10 Oct 2012) Log Message: ----------- [FIX] javascript: Try cookie test earlier in js (before jqueryTiki setup) Modified Paths: -------------- trunk/lib/setup/javascript.php Modified: trunk/lib/setup/javascript.php =================================================================== --- trunk/lib/setup/javascript.php 2012-10-10 17:37:45 UTC (rev 43370) +++ trunk/lib/setup/javascript.php 2012-10-10 17:40:17 UTC (rev 43371) @@ -26,7 +26,7 @@ if ( $prefs['javascript_enabled'] != 'y' && $prefs['disableJavascript'] != 'y' ) { // Set the cookie to 'y', through javascript (will override the above cookie set to 'n' and sent by PHP / HTTP headers) - duration: approx. 1 year - $headerlib->add_js("setCookie('javascript_enabled', 'y');", 1); + $headerlib->add_js("setCookie('javascript_enabled', 'y');", 0); // the first and second time, we should not trust the absence of javascript_enabled cookie yet, as it could be a redirection and the js will not get a chance to run yet, so we wait until the third run, assuming that js is on before then $runs_before_js_detect = getCookie('runs_before_js_detect'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |