mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
mod-lesson MDL-21006 Fixed missing variable after navigation changes
This commit is contained in:
parent
130d2f533b
commit
57173b8dfb
@ -832,7 +832,7 @@ function lesson_extend_settings_navigation($settings, $module) {
|
||||
$lessonnav->add(get_string('manualgrading', 'lesson'), $url);
|
||||
}
|
||||
|
||||
if ($lesson->highscores) {
|
||||
if ($PAGE->activityrecord->highscores) {
|
||||
$url = new moodle_url('/mod/lesson/highscores.php', array('id'=>$PAGE->cm->id));
|
||||
$lessonnav->add(get_string('highscores', 'lesson'), $url);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user