parent
631b3d9f6e
commit
ea63dad087
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue