Update to Drupal 8.0.5. For more information, see https://www.drupal.org/node/2679347
This commit is contained in:
parent
2a9f1f148d
commit
fd3b12cf27
251 changed files with 5439 additions and 957 deletions
|
|
@ -397,7 +397,7 @@ class BookManager implements BookManagerInterface {
|
|||
foreach ($tree as $data) {
|
||||
if ($data['link']['depth'] > $depth_limit) {
|
||||
// Don't iterate through any links on this level.
|
||||
break;
|
||||
return;
|
||||
}
|
||||
if (!in_array($data['link']['nid'], $exclude)) {
|
||||
$nids[] = $data['link']['nid'];
|
||||
|
|
@ -408,7 +408,8 @@ class BookManager implements BookManagerInterface {
|
|||
|
||||
foreach ($tree as $data) {
|
||||
$nid = $data['link']['nid'];
|
||||
if (in_array($nid, $exclude)) {
|
||||
// Check for excluded or missing node.
|
||||
if (empty($nodes[$nid])) {
|
||||
continue;
|
||||
}
|
||||
$toc[$nid] = $indent . ' ' . Unicode::truncate($nodes[$nid]->label(), 30, TRUE, TRUE);
|
||||
|
|
|
|||
Reference in a new issue