MDL-20204 fixing problematic flash test when using non standard headers
authorPetr Skoda <skodak@moodle.org>
Mon, 15 Feb 2010 19:05:33 +0000 (19:05 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 15 Feb 2010 19:05:33 +0000 (19:05 +0000)
lib/outputrenderers.php

index 8bfab06..7d0df56 100644 (file)
@@ -346,7 +346,7 @@ class core_renderer extends renderer_base {
         $this->page->requires->js($jsurl);
 
         // Perform a browser environment check for the flash version.  Should only run once per login session.
-        if (isloggedin() && !empty($CFG->excludeoldflashclients) && empty($SESSION->flashversion)) {
+        if (!NO_MOODLE_COOKIES && isloggedin() && !empty($CFG->excludeoldflashclients) && empty($SESSION->flashversion)) {
             $this->page->requires->js('/lib/swfobject/swfobject.js');
             $this->page->requires->js_init_call('M.core_flashdetect.init');
         }