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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user