mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
Merge branch 'master_MDL-34656' of git://github.com/danmarsden/moodle
This commit is contained in:
commit
f1bfa6bf33
@ -49,7 +49,16 @@ if (!empty($id)) {
|
||||
|
||||
$PAGE->set_url('/mod/scorm/loadSCO.php', array('scoid'=>$scoid, 'id'=>$cm->id));
|
||||
|
||||
require_login($course, false, $cm);
|
||||
if (!isloggedin()) { // Prevent login page from being shown in iframe.
|
||||
// Using simple html instead of exceptions here as shown inside iframe/object.
|
||||
echo html_writer::start_tag('html');
|
||||
echo html_writer::tag('head', '');
|
||||
echo html_writer::tag('body', get_string('loggedinnot'));
|
||||
echo html_writer::end_tag('html');
|
||||
exit;
|
||||
}
|
||||
|
||||
require_login($course, false, $cm, false); // Call require_login anyway to set up globals correctly.
|
||||
|
||||
//check if scorm closed
|
||||
$timenow = time();
|
||||
|
Loading…
x
Reference in New Issue
Block a user