Skip to content

Commit

Permalink
MDL-27922 lesson mod: fixed string for activity link
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossiani Wijaya committed Jun 24, 2011
1 parent 50d32a2 commit 560f549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/lesson/lang/en/lesson.php
Expand Up @@ -34,7 +34,7 @@
$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';
Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/locallib.php
Expand Up @@ -1280,7 +1280,7 @@ public function link_for_activitylink() {
$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'));
}
}
Expand Down

0 comments on commit 560f549

Please sign in to comment.