Skip to content
Permalink
Browse files

Improve breadcrumbs

  • Loading branch information...
flack committed Jun 4, 2019
1 parent 69753ab commit 402192e0eb46bc38a18e5eb78fb9dd495ed08ebe
Showing with 3 additions and 6 deletions.
  1. +3 −6 lib/midgard/admin/asgard/handler/undelete.php
@@ -81,7 +81,7 @@ public function _handler_trash_type(Request $request, $type, array &$data)
$this->type = $type;
$data['view_title'] = midgard_admin_asgard_plugin::get_type_label($type);
$data['view_title'] = sprintf($this->_l10n->get('%s trash'), midgard_admin_asgard_plugin::get_type_label($type));
$dummy = new $type;
$data['midcom_dba_classname'] = midcom::get()->dbclassloader->get_midcom_class_name_for_mgdschema_object($dummy);
@@ -108,11 +108,8 @@ public function _handler_trash_type(Request $request, $type, array &$data)
// Set the breadcrumb data
$this->add_breadcrumb($this->router->generate('welcome'), $this->_l10n->get($this->_component));
$this->add_breadcrumb($this->router->generate('trash_type', ['type' => $type]), $data['view_title']);
$this->add_breadcrumb(
"",
sprintf($this->_l10n->get('%s trash'), midgard_admin_asgard_plugin::get_type_label($type))
);
$this->add_breadcrumb($this->router->generate('trash'), $this->_l10n->get('trash'));
$this->add_breadcrumb($this->router->generate('trash_type', ['type' => $type]), midgard_admin_asgard_plugin::get_type_label($type));
return $this->get_response();
}

0 comments on commit 402192e

Please sign in to comment.
You can’t perform that action at this time.