[icinga-checkins] icinga.org: icingaweb2/master: FilterEditor: readability

git at icinga.org git at icinga.org
Sun Nov 16 00:38:42 CET 2014


Module: icingaweb2
Branch: master
Commit: d6e3f069970e508fa219afe00f378e27396674f2
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=d6e3f069970e508fa219afe00f378e27396674f2

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sat Nov 15 23:31:17 2014 +0100

FilterEditor: readability

---

 library/Icinga/Web/Widget/FilterEditor.php |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php
index 228e456..69ab4de 100644
--- a/library/Icinga/Web/Widget/FilterEditor.php
+++ b/library/Icinga/Web/Widget/FilterEditor.php
@@ -114,7 +114,11 @@ class FilterEditor extends AbstractWidget
         } else {
             $attributes = $view->propertiesToString($attributes);
         }
-        $html = '<select name="' . $view->escape($name) . '"' . $attributes . ' class="autosubmit">' . "\n";
+        $html = sprintf(
+            '<select name="%s"%s class="autosubmit">' . "\n",
+            $view->escape($name),
+            $attributes
+        );
 
         asort($list);
         foreach ($list as $k => $v) {



More information about the icinga-checkins mailing list