Merge branch 'MDL-52773-30' of https://github.com/pauln/moodle into MOODLE_30_STABLE

This commit is contained in:
Andrew Nicols
2016-01-19 10:02:53 +08:00
+2 -1
View File
@@ -314,8 +314,9 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
$streditsection = get_string('editsection');
}
$sectionreturn = $onsectionpage ? $section->section : 0;
$controls['edit'] = array(
'url' => new moodle_url('/course/editsection.php', array('id' => $section->id, 'sr' => $onsectionpage)),
'url' => new moodle_url('/course/editsection.php', array('id' => $section->id, 'sr' => $sectionreturn)),
'icon' => 'i/settings',
'name' => $streditsection,
'pixattr' => array('class' => '', 'alt' => $streditsection),