Skip to content
Browse files

MDL-22154 fixed incorrect URL in ajax call (thanks Pasi H�kkinen) and…

… fixed xhtml strict issue with embedded JS
  • Loading branch information...
1 parent b0f8277 commit caa932d8bf6540620bed063fe2f5f593f4ad4b74 @skodak skodak committed Apr 21, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/weblib.php
View
4 lib/weblib.php
@@ -2520,8 +2520,10 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
$meta .= '<script type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/swfobject/swfobject.js"></script>';
$meta .=
"<script type=\"text/javascript\">\n".
+ "//<![CDATA[\n".
" var flashversion = swfobject.getFlashPlayerVersion();\n".
- " YAHOO.util.Connect.asyncRequest('GET','".$CFG->httpswwwroot."/login/environment.php?sesskey=".sesskey()."&amp;flashversion='+flashversion.major+'.'+flashversion.minor+'.'+flashversion.release);\n".
+ " YAHOO.util.Connect.asyncRequest('GET','".$CFG->httpswwwroot."/login/environment.php?sesskey=".sesskey()."&flashversion='+flashversion.major+'.'+flashversion.minor+'.'+flashversion.release);\n".
+ "//]]>\n".
"</script>";
}

0 comments on commit caa932d

Please sign in to comment.
Something went wrong with that request. Please try again.