Merge branch 'MDL-46188_m26' of https://github.com/shashirepo/moodle into MOODLE_26_STABLE

This commit is contained in:
Damyon Wiese
2014-08-19 13:15:13 +08:00
-3
View File
@@ -1180,21 +1180,18 @@ class core_course_management_renderer extends plugin_renderer_base {
}
// Show/Hide.
if ($course->can_change_visibility()) {
if ($course->visible) {
$actions[] = $this->output->action_icon(
new moodle_url($baseurl, array('action' => 'hidecourse')),
new pix_icon('t/show', get_string('hide')),
null,
array('data-action' => 'hide', 'class' => 'action-hide')
);
} else {
$actions[] = $this->output->action_icon(
new moodle_url($baseurl, array('action' => 'showcourse')),
new pix_icon('t/hide', get_string('show')),
null,
array('data-action' => 'show', 'class' => 'action-show')
);
}
}
}
if (empty($actions)) {