mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[ticket/17151] Make macros available for extensions
Also add tests and error reporting. PHPBB3-17151
This commit is contained in:
@@ -78,7 +78,7 @@ class forms extends AbstractExtension
|
||||
}
|
||||
catch (\Twig\Error\Error $e)
|
||||
{
|
||||
return '';
|
||||
return $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ class forms extends AbstractExtension
|
||||
}
|
||||
catch (\Twig\Error\Error $e)
|
||||
{
|
||||
return '';
|
||||
return $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ class forms extends AbstractExtension
|
||||
}
|
||||
catch (\Twig\Error\Error $e)
|
||||
{
|
||||
return '';
|
||||
return $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ class forms extends AbstractExtension
|
||||
}
|
||||
catch (\Twig\Error\Error $e)
|
||||
{
|
||||
return '';
|
||||
return $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ class forms extends AbstractExtension
|
||||
}
|
||||
catch (\Twig\Error\Error $e)
|
||||
{
|
||||
return '';
|
||||
return $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ class forms extends AbstractExtension
|
||||
}
|
||||
catch (\Twig\Error\Error $e)
|
||||
{
|
||||
return '';
|
||||
return $e->getMessage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user