MDL-27922 lesson mod: fixed string for activity link

This commit is contained in:
Rossiani Wijaya
2011-06-24 16:48:46 +08:00
parent ff555b58be
commit bac9a5e95e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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'));
}
}