mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merged from 1.7.
This commit is contained in:
parent
ebe82e08ec
commit
15c331b2e8
3 changed files with 28 additions and 15 deletions
|
@ -115,6 +115,12 @@ class jsportal {
|
|||
$output .= "<script type=\"text/javascript\">\n";
|
||||
$output .= " main.portal.id = ".$courseid.";\n";
|
||||
$output .= " main.portal.blocks = new Array(".$blocksoutput.");\n";
|
||||
$output .= " main.portal.sesskey = \"".$USER->sesskey."\";\n";
|
||||
if (check_browser_version('MSIE')) {
|
||||
$output .= " main.portal.clientIsIE = true;\n";
|
||||
} else {
|
||||
$output .= " main.portal.clientIsIE = false;\n";
|
||||
}
|
||||
$output .= " main.portal.strings['wwwroot']='".$CFG->wwwroot."';\n";
|
||||
$output .= " main.portal.strings['pixpath']='".$CFG->pixpath."';\n";
|
||||
$output .= " main.portal.strings['move']='".get_string('move')."';\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue