mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14457] Handle the case where there isn't any 'definition' bag
PHPBB3-14457
This commit is contained in:
parent
99ace63e62
commit
97bbf2d2b8
1 changed files with 5 additions and 2 deletions
|
@ -213,8 +213,11 @@ class environment extends \Twig_Environment
|
|||
{
|
||||
$placeholder_salt = unique_id();
|
||||
|
||||
if (array_key_exists('definition', $context))
|
||||
{
|
||||
$context['definition']->set('SCRIPTS', '__SCRIPTS_' . $placeholder_salt . '__');
|
||||
$context['definition']->set('STYLESHEETS', '__STYLESHEETS_' . $placeholder_salt . '__');
|
||||
}
|
||||
|
||||
$output = parent::render($name, $context);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue