MDL-46107 badges: Fix badges navigation and remove empty breadcrumbs on pages using Clean

Signed-off-by: Yuliya Bozhko <[email protected]>
This commit is contained in:
Yuliya Bozhko
2014-06-27 12:49:00 +12:00
parent 5c1049f72b
commit 3e9dfd7f62
3 changed files with 21 additions and 1 deletions
@@ -56,6 +56,9 @@ class theme_bootstrapbase_core_renderer extends core_renderer {
*/
public function navbar() {
$items = $this->page->navbar->get_items();
if (empty($items)) {
return '';
}
$breadcrumbs = array();
foreach ($items as $item) {
$item->hideicon = true;