Permalink
Browse files

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

  • Loading branch information...
1 parent 6bf5201 commit 25105b650aa1c014e3296daf77673c59e5c7e624 @damyon damyon committed Apr 15, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/navigationlib.php
View
@@ -3053,7 +3053,9 @@ public function get_items() {
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;
@@ -3064,7 +3066,9 @@ public function get_items() {
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;

0 comments on commit 25105b6

Please sign in to comment.