Merge branch 'MDL-57174_master' of git://github.com/markn86/moodle

This commit is contained in:
Andrew Nicols 2016-11-30 09:12:54 +08:00
commit 8018dc63c7

View File

@ -43,6 +43,7 @@ if (!in_array($mode, array('single', 'full', 'collapsed'))) {
$mode = 'collapsed';
}
$PAGE->set_url('/mod/lesson/edit.php', array('id'=>$cm->id,'mode'=>$mode));
$PAGE->force_settings_menu();
if ($mode != get_user_preferences('lesson_view', 'collapsed') && $mode !== 'single') {
set_user_preference('lesson_view', $mode);