mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-25596-fixed' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
f4f374176d
@ -107,12 +107,16 @@ class block_navigation extends block_base {
|
||||
if (!empty($CFG->navcourselimit)) {
|
||||
$limit = $CFG->navcourselimit;
|
||||
}
|
||||
$expansionlimit = 0;
|
||||
if (!empty($this->config->expansionlimit)) {
|
||||
$expansionlimit = $this->config->expansionlimit;
|
||||
}
|
||||
$arguments = array(
|
||||
'id' => $this->instance->id,
|
||||
'instance' => $this->instance->id,
|
||||
'candock' => $this->instance_can_be_docked(),
|
||||
'courselimit' => $limit,
|
||||
'expansionlimit' => $this->config->expansionlimit
|
||||
'expansionlimit' => $expansionlimit
|
||||
);
|
||||
$this->page->requires->yui_module(array('core_dock', 'moodle-block_navigation-navigation'), 'M.block_navigation.init_add_tree', array($arguments));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user