MDL-13766 fixed htts detection logic bug

This commit is contained in:
skodak 2009-05-17 18:56:34 +00:00
parent e7c2f2ba37
commit 34b72bddab

View File

@ -61,7 +61,7 @@ class tinymce_texteditor extends texteditor {
public function header_js() {
global $CFG;
$usehttps = (int)($CFG->httpswwwroot === $CFG->wwwroot); //hmm, is there a better test?
$usehttps = (int)($CFG->httpswwwroot !== $CFG->wwwroot); //hmm, is there a better test?
$js = '<script type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/editor/tinymce/tiny_mce_src.js"></script>'."\n".
'<script type="text/javascript" src="'.$CFG->httpswwwroot.'/lib/editor/tinymce/extra/tinymce.js.php?elanguage='.current_language().'&amp;etheme='.current_theme().'&amp;eusehttps='.$usehttps.'"></script>'."\n";