Permalink
Browse files

MDL-21910 adding https www root to flash detection

  • Loading branch information...
1 parent 67255b5 commit 7bce3cf885b113869163691984a583731047567f @skodak skodak committed Mar 24, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/weblib.php
View
@@ -2514,14 +2514,14 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
if (isloggedin() && !empty($CFG->excludeoldflashclients) && empty($SESSION->flashversion)) {
// Unfortunately we can't use require_js here and keep it all clean in 1.9 ...
// require_js(array('yui_yahoo', 'yui_event', 'yui_connection', $CFG->httpswwwroot."/lib/swfobject/swfobject.js"));
- $meta .= '<script type="text/javascript" src="'.$CFG->wwwroot.'/lib/yui/yahoo/yahoo-min.js"></script>';
- $meta .= '<script type="text/javascript" src="'.$CFG->wwwroot.'/lib/yui/event/event-min.js"></script>';
- $meta .= '<script type="text/javascript" src="'.$CFG->wwwroot.'/lib/yui/connection/connection-min.js"></script>';
- $meta .= '<script type="text/javascript" src="'.$CFG->wwwroot.'/lib/swfobject/swfobject.js"></script>';
+ $meta .= '<script type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/yui/yahoo/yahoo-min.js"></script>';
+ $meta .= '<script type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/yui/event/event-min.js"></script>';
+ $meta .= '<script type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/yui/connection/connection-min.js"></script>';
+ $meta .= '<script type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/swfobject/swfobject.js"></script>';
$meta .=
"<script type=\"text/javascript\">\n".
" var flashversion = swfobject.getFlashPlayerVersion();\n".
- " YAHOO.util.Connect.asyncRequest('GET','".$CFG->wwwroot."/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()."&amp;flashversion='+flashversion.major+'.'+flashversion.minor+'.'+flashversion.release);\n".
"</script>";
}

0 comments on commit 7bce3cf

Please sign in to comment.