mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-13766 fixed htts detection logic bug
This commit is contained in:
parent
e7c2f2ba37
commit
34b72bddab
@ -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().'&etheme='.current_theme().'&eusehttps='.$usehttps.'"></script>'."\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user