mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Merge branch 'patch-2' of https://github.com/sk-unikent/moodle
This commit is contained in:
commit
d0704fd9e2
@ -28,7 +28,9 @@ class block_settings_renderer extends plugin_renderer_base {
|
||||
$count = 0;
|
||||
foreach ($navigation->children as &$child) {
|
||||
$child->preceedwithhr = ($count!==0);
|
||||
$count++;
|
||||
if ($child->display) {
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
$content = $this->navigation_node($navigation, array('class'=>'block_tree list'));
|
||||
if (isset($navigation->id) && !is_numeric($navigation->id) && !empty($content)) {
|
||||
@ -116,4 +118,4 @@ class block_settings_renderer extends plugin_renderer_base {
|
||||
return $content;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user