diff --git a/modules/monitoring/application/views/scripts/list/hostgroups.phtml b/modules/monitoring/application/views/scripts/list/hostgroups.phtml index a2b8a1efb..aab39f800 100644 --- a/modules/monitoring/application/views/scripts/list/hostgroups.phtml +++ b/modules/monitoring/application/views/scripts/list/hostgroups.phtml @@ -1,4 +1,5 @@ compact): ?> @@ -42,12 +43,15 @@ if (! $this->compact): ?> qlink( $hostGroup->hostgroup_alias, - $this->url('monitoring/list/hosts')->addFilter($this->filterEditor->getFilter()), - array('hostgroup_name' => $hostGroup->hostgroup_name, 'sort' => 'host_severity'), - array('title' => sprintf( + $this + ->url('monitoring/list/hosts') + ->setParams(['hostgroup_name' => $hostGroup->hostgroup_name]) + ->addFilter($this->filterEditor->getFilter()), + ['sort' => 'host_severity'], + ['title' => sprintf( $this->translate('List all hosts in the group "%s"'), $hostGroup->hostgroup_alias - )) + )] ) ?> @@ -140,12 +144,18 @@ if (! $this->compact): ?> qlink( $hostGroup->services_total, - $this->url('monitoring/list/services')->addFilter($this->filterEditor->getFilter()), - array('hostgroup_name' => $hostGroup->hostgroup_name, 'sort' => 'service_severity'), - array('title' => sprintf( - $this->translate('List all services of all hosts in host group "%s"'), - $hostGroup->hostgroup_alias - ), 'class' => 'badge') + $this + ->url('monitoring/list/services') + ->setParams(['hostgroup_name' => $hostGroup->hostgroup_name]) + ->addFilter($this->filterEditor->getFilter()), + ['sort' => 'service_severity'], + [ + 'title' => sprintf( + $this->translate('List all services of all hosts in host group "%s"'), + $hostGroup->hostgroup_alias + ), + 'class' => 'badge' + ] ) ?>