mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-55114 chat: Remove commented-out variables
This commit is contained in:
parent
ac8d6cff54
commit
e1ca4da750
@ -98,13 +98,6 @@ header('Pragma: no-cache');
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
header("Refresh: $CFG->chat_refresh_room; url=$refreshurl");
|
||||
|
||||
// Required stylesheets.
|
||||
$stylesheetshtml = '';
|
||||
/*foreach ($CFG->stylesheets as $stylesheet) {
|
||||
//TODO: MDL-21120
|
||||
$stylesheetshtml .= '<link rel="stylesheet" type="text/css" href="'.$stylesheet.'" />';
|
||||
}*/
|
||||
|
||||
// Use ob to be able to send Content-Length headers.
|
||||
// Needed for Keep-Alive to work.
|
||||
ob_start();
|
||||
@ -131,7 +124,6 @@ ob_start();
|
||||
parent.msg.document.write("<html><head>");
|
||||
parent.msg.document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />");
|
||||
parent.msg.document.write("<base target=\"_blank\" />");
|
||||
parent.msg.document.write("<?php echo addslashes_js($stylesheetshtml) ?>");
|
||||
parent.msg.document.write("<\/head><body class=\"mod-chat-gui_header_js course-<?php echo $chatuser->course ?>\" id=\"mod-chat-gui_header_js-jsupdate\"><div style=\"display: none\" id=\"msgStarted\"> <\/div>");
|
||||
}
|
||||
<?php
|
||||
|
@ -90,13 +90,6 @@ header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
// Required stylesheets.
|
||||
$stylesheetshtml = '';
|
||||
/*foreach ($CFG->stylesheets as $stylesheet) {
|
||||
//TODO: MDL-21120
|
||||
$stylesheetshtml .= '<link rel="stylesheet" type="text/css" href="'.$stylesheet.'" />';
|
||||
}*/
|
||||
|
||||
$refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdated.php?".
|
||||
"chat_sid=$chatsid&chat_lasttime=$chatlasttime&chat_lastrow=$chatnewrow&chat_lastid=$chatlastid";
|
||||
?>
|
||||
@ -121,7 +114,6 @@ $refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdated.php?".
|
||||
parent.msg.document.write("<html><head>");
|
||||
parent.msg.document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />");
|
||||
parent.msg.document.write("<base target=\"_blank\" />");
|
||||
parent.msg.document.write("<?php echo addslashes_js($stylesheetshtml) ?>");
|
||||
parent.msg.document.write("</head><body class=\"mod-chat-gui_header_js course-<?php echo $chatuser->course ?>\" id=\"mod-chat-gui_header_js-jsupdate\"><div style=\"display: none\" id=\"msgStarted\"> </div>");
|
||||
}
|
||||
//]]>
|
||||
|
Loading…
x
Reference in New Issue
Block a user