From 8cc1970a9f38bf1e70d308051de7f910b92c95e0 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 25 Aug 2015 16:51:50 +0200 Subject: [PATCH] SearchDashboard: Use t() instead of the view helper Since it's library code we do not need to use the module-aware translation helper. --- library/Icinga/Web/Widget/SearchDashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Widget/SearchDashboard.php b/library/Icinga/Web/Widget/SearchDashboard.php index 9cc67b89c..fcb8d4b81 100644 --- a/library/Icinga/Web/Widget/SearchDashboard.php +++ b/library/Icinga/Web/Widget/SearchDashboard.php @@ -72,7 +72,7 @@ class SearchDashboard extends Dashboard $pane->createDashlet( $searchUrl->title . ': ' . $searchString, Url::fromPath($searchUrl->url, array('q' => $searchString)) - )->setProgressLabel($this->view()->translate('Searching')); + )->setProgressLabel(t('Searching')); } return $this;