MDL-37762 navbar - fold some long lines in previous patch

This commit is contained in:
Damyon Wiese 2013-04-15 13:32:07 +08:00
parent 23718dade9
commit 823efcedcc

View File

@ -3008,7 +3008,9 @@ class navbar extends navigation_node {
if (!$navigationactivenode->mainnavonly) {
$items[] = $navigationactivenode;
}
if (!empty($CFG->navshowcategories) && $navigationactivenode->type === self::TYPE_COURSE && $navigationactivenode->parent->key === 'currentcourse') {
if (!empty($CFG->navshowcategories) &&
$navigationactivenode->type === self::TYPE_COURSE &&
$navigationactivenode->parent->key === 'currentcourse') {
$items = array_merge($items, $this->get_course_categories());
}
$navigationactivenode = $navigationactivenode->parent;
@ -3019,7 +3021,9 @@ class navbar extends navigation_node {
if (!$navigationactivenode->mainnavonly) {
$items[] = $navigationactivenode;
}
if (!empty($CFG->navshowcategories) && $navigationactivenode->type === self::TYPE_COURSE && $navigationactivenode->parent->key === 'currentcourse') {
if (!empty($CFG->navshowcategories) &&
$navigationactivenode->type === self::TYPE_COURSE &&
$navigationactivenode->parent->key === 'currentcourse') {
$items = array_merge($items, $this->get_course_categories());
}
$navigationactivenode = $navigationactivenode->parent;