Skip to content

Commit

Permalink
MDL-42909 Course: Fix title for move-targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnfwlr committed Jul 18, 2014
1 parent 5fd0df9 commit 33b6b8c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions course/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1098,17 +1098,19 @@ public function course_section_cm_list($course, $section, $sectionreturn = null,
foreach ($moduleshtml as $modnumber => $modulehtml) {
if ($ismoving) {
$movingurl = new moodle_url('/course/mod.php', array('moveto' => $modnumber, 'sesskey' => sesskey()));
$sectionoutput .= html_writer::tag('li', html_writer::link($movingurl, $this->output->render($movingpix)),
array('class' => 'movehere', 'title' => $strmovefull));
$sectionoutput .= html_writer::tag('li',
html_writer::link($movingurl, $this->output->render($movingpix), array('title' => $strmovefull)),
array('class' => 'movehere'));
}

$sectionoutput .= $modulehtml;
}

if ($ismoving) {
$movingurl = new moodle_url('/course/mod.php', array('movetosection' => $section->id, 'sesskey' => sesskey()));
$sectionoutput .= html_writer::tag('li', html_writer::link($movingurl, $this->output->render($movingpix)),
array('class' => 'movehere', 'title' => $strmovefull));
$sectionoutput .= html_writer::tag('li',
html_writer::link($movingurl, $this->output->render($movingpix), array('title' => $strmovefull)),
array('class' => 'movehere'));
}
}

Expand Down

0 comments on commit 33b6b8c

Please sign in to comment.