Permalink
Browse files

Only show component title if it has one

  • Loading branch information...
flack committed Jul 10, 2018
1 parent b08e910 commit b8c83b6dbee39c6d086670e1fb391e6d4fc55b6b
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/midcom/admin/help/help.php
@@ -333,7 +333,10 @@ private function _load_component_data($name)
{
$component_array = [];
$component_array['name'] = $name;
$component_array['title'] = midcom::get()->i18n->get_string($name, $name);
$component_array['title'] = '';
if (midcom::get()->i18n->get_l10n($name)->string_exists($name)) {
$component_array['title'] = midcom::get()->i18n->get_string($name, $name);
}
$component_array['icon'] = midcom::get()->componentloader->get_component_icon($name);
if (isset(midcom::get()->componentloader->manifests[$name])) {

0 comments on commit b8c83b6

Please sign in to comment.