mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-61498-master' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
aab270d579
@ -2193,7 +2193,7 @@ class lesson extends lesson_base {
|
||||
|
||||
/**
|
||||
* Returns the link for the related activity
|
||||
* @return array|false
|
||||
* @return string
|
||||
*/
|
||||
public function link_for_activitylink() {
|
||||
global $DB;
|
||||
@ -2203,9 +2203,9 @@ class lesson extends lesson_base {
|
||||
if ($modname) {
|
||||
$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('activitylinkname', 'lesson', $instancename),
|
||||
array('class'=>'centerpadded lessonbutton standardbutton'));
|
||||
return html_writer::link(new moodle_url('/mod/'.$modname.'/view.php',
|
||||
array('id' => $this->properties->activitylink)), get_string('activitylinkname',
|
||||
'lesson', $instancename), array('class' => 'centerpadded lessonbutton standardbutton p-r-1'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user