mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
parent
631b3d9f6e
commit
ea63dad087
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user