Merge branch 'MDL-25596-fixed' of git://github.com/samhemelryk/moodle

This commit is contained in:
Petr Skoda 2011-01-12 09:57:18 +01:00
commit f4f374176d

View File

@ -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));
}