From ea63dad08728cb58fd22d41954f1ea8ec90035d6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 10 Sep 2014 16:56:26 +0200 Subject: [PATCH] viewHelpers: use the view refs #7177 --- library/Icinga/Web/View/helpers/url.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/Icinga/Web/View/helpers/url.php b/library/Icinga/Web/View/helpers/url.php index 0f252310b..935a55a97 100644 --- a/library/Icinga/Web/View/helpers/url.php +++ b/library/Icinga/Web/View/helpers/url.php @@ -90,8 +90,7 @@ $this->addHelperFunction('propertiesToString', function ($properties) use ($view return ' ' . implode(' ', $attributes); }); -$this->addHelperFunction('attributeToString', function ($key, $value) -{ +$this->addHelperFunction('attributeToString', function ($key, $value) use ($view) { // TODO: Doublecheck this! if (! preg_match('~^[a-zA-Z0-9-]+$~', $key)) { throw new ProgrammingError(