MINOR Linking breadcrumbs to root node via AssetAdmin->Breadcrumbs()

This commit is contained in:
Ingo Schommer 2012-02-28 20:11:07 +01:00
parent f78ab9097a
commit e96d6f5bd5

View File

@ -476,6 +476,18 @@ JS
return array_diff($allThumbnails, $usedThumbnails);
}
/**
* @return ArrayList
*/
public function Breadcrumbs($unlinked = false) {
$items = parent::Breadcrumbs($unlinked);
// The root element should explicitly point to the root node
$items[0]->Link = Controller::join_links($this->Link('show'), 'root');
return $items;
}
}
/**