Skip to content

Commit

Permalink
V3.0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Nov 21, 2015
1 parent 1e933b9 commit 4fc1a25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ Version 3.0.0.3
1. Fixed #18, Collapsed Topics Edit menu and MDL-42634-28, ref: https://github.com/gjb2048/moodle-format_topcoll/issues/18
2. Fixed slight issue with heading colour conflict and themes.
3. Fixed #19, Drag and drop handle does not show when editing in RTL.
4. Apply MDL-10405.

Version 3.0.0.2
1. Added responsive theme support, now a new 'Format responsive' setting in Site Administration -> Plugins ->
Expand Down
3 changes: 2 additions & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,10 @@ protected function section_edit_control_items($course, $section, $onsectionpage
if (empty($this->tcsettings)) {
$this->tcsettings = $this->courseformat->get_settings();
}
$isstealth = $section->section > $course->numsections;
$controls = array();
if ((($this->tcsettings['layoutstructure'] == 1) || ($this->tcsettings['layoutstructure'] == 4)) &&
has_capability('moodle/course:setcurrentsection', $coursecontext)) {
!$isstealth && $section->section && has_capability('moodle/course:setcurrentsection', $coursecontext)) {
if ($course->marker == $section->section) { // Show the "light globe" on/off.
$url->param('marker', 0);
$markedthissection = get_string('markedthissection', 'format_topcoll');
Expand Down

0 comments on commit 4fc1a25

Please sign in to comment.