viewHelpers: use the view

refs #7177
This commit is contained in:
Thomas Gelf 2014-09-10 16:56:26 +02:00
parent 631b3d9f6e
commit ea63dad087
1 changed files with 1 additions and 2 deletions

View File

@ -90,8 +90,7 @@ $this->addHelperFunction('propertiesToString', function ($properties) use ($view
return ' ' . implode(' ', $attributes); return ' ' . implode(' ', $attributes);
}); });
$this->addHelperFunction('attributeToString', function ($key, $value) $this->addHelperFunction('attributeToString', function ($key, $value) use ($view) {
{
// TODO: Doublecheck this! // TODO: Doublecheck this!
if (! preg_match('~^[a-zA-Z0-9-]+$~', $key)) { if (! preg_match('~^[a-zA-Z0-9-]+$~', $key)) {
throw new ProgrammingError( throw new ProgrammingError(