MDL-21124 towards full JS support in themes

This commit is contained in:
Petr Skoda 2009-12-20 23:06:57 +00:00
parent 38aafea249
commit e68c5f36cf
3 changed files with 108 additions and 17 deletions

View file

@ -367,7 +367,7 @@ class core_renderer extends renderer_base {
// Get the theme javascript
$jsurl = $this->page->theme->javascript_url();
$this->page->requires->js($jsurl->out_raw(), true)->in_head();
$this->page->requires->js($jsurl->out(), true)->in_head();
// Perform a browser environment check for the flash version. Should only run once per login session.
if (isloggedin() && !empty($CFG->excludeoldflashclients) && empty($SESSION->flashversion)) {