MDL-27922 lesson mod: fixed string for activity link
This commit is contained in:
@@ -34,7 +34,7 @@ $string['actionaftercorrectanswer_help'] = 'After answering a question correctly
|
||||
$string['actions'] = 'Actions';
|
||||
$string['activitylink'] = 'Link to an activity';
|
||||
$string['activitylink_help'] = 'To provide a link at the end of the lesson to another activity in the course, select the activity from the dropdown list.';
|
||||
$string['activitylinkname'] = 'Go to: {$a}';
|
||||
$string['activitylinkname'] = 'Go to {$a}';
|
||||
$string['addabranchtable'] = 'Add a content page';
|
||||
$string['addanendofbranch'] = 'Add an end of branch';
|
||||
$string['addanewpage'] = 'Add a new page';
|
||||
|
||||
@@ -1280,7 +1280,7 @@ class lesson extends lesson_base {
|
||||
$instancename = $DB->get_field($modname, 'name', array('id' => $module->instance));
|
||||
if ($instancename) {
|
||||
return html_writer::link(new moodle_url('/mod/'.$modname.'/view.php', array('id'=>$this->properties->activitylink)),
|
||||
get_string('returnto', 'lesson', get_string('activitylinkname', 'lesson', $instancename)),
|
||||
get_string('activitylinkname', 'lesson', $instancename),
|
||||
array('class'=>'centerpadded lessonbutton standardbutton'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user