| @@ 100-111 (lines=12) @@ | ||
| 97 | $currentGrouping = $grouping; |
|
| 98 | $match = false; |
|
| 99 | } |
|
| 100 | else { |
|
| 101 | $localMatch = ($id == $grouping['id']); |
|
| 102 | $currentData[] = array( |
|
| 103 | 'caption' => $grouping['display_name'], |
|
| 104 | 'active' => $localMatch, |
|
| 105 | 'target' => $app->urlFor('grouping', array('id' => $grouping['id'])) |
|
| 106 | ); |
|
| 107 | if ($localMatch) { |
|
| 108 | $matchedGrouping = $grouping; |
|
| 109 | } |
|
| 110 | $match = $match || $localMatch; |
|
| 111 | } |
|
| 112 | } |
|
| 113 | if ($currentGrouping != null) { |
|
| 114 | array_unshift($currentData, |
|
| @@ 472-483 (lines=12) @@ | ||
| 469 | $currentCategory = $category; |
|
| 470 | $match = false; |
|
| 471 | } |
|
| 472 | else { |
|
| 473 | $localMatch = ($id == $category['id']); |
|
| 474 | $currentData[] = array( |
|
| 475 | 'caption' => $category['display_name'], |
|
| 476 | 'active' => $localMatch, |
|
| 477 | 'target' => $app->urlFor('tree', array('id' => $category['id'])) |
|
| 478 | ); |
|
| 479 | if ($localMatch) { |
|
| 480 | $matchedCategory = $category; |
|
| 481 | } |
|
| 482 | $match = $match || $localMatch; |
|
| 483 | } |
|
| 484 | } |
|
| 485 | if ($currentCategory != null) { |
|
| 486 | $return[] = array( |
|