1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-24 17:22:55 +02:00

[ticket/17151] Make macros available for extensions

Also add tests and error reporting.

PHPBB3-17151
This commit is contained in:
rxu
2023-09-08 20:46:01 +07:00
parent e83ae55d2d
commit 69cc2a9734
21 changed files with 455 additions and 153 deletions

View File

@@ -129,7 +129,7 @@ class icon extends AbstractExtension
}
catch (\Twig\Error\Error $e)
{
return '';
return $e->getMessage();
}
break;
@@ -148,7 +148,7 @@ class icon extends AbstractExtension
}
catch (\Twig\Error\Error $e)
{
return '';
return $e->getMessage();
}
$type = 'svg';
@@ -170,7 +170,7 @@ class icon extends AbstractExtension
}
catch (\Twig\Error\Error $e)
{
return '';
return $e->getMessage();
}
}