mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/14446] Add predefined placeholder variables to twig definition
PHPBB3-14446
This commit is contained in:
@@ -53,8 +53,6 @@ abstract class includeasset extends \Twig_Node
|
||||
->write("\$asset->add_assets_version('{$config['assets_version']}');\n")
|
||||
->outdent()
|
||||
->write("}\n")
|
||||
->write("\$context['definition']->set('STYLESHEETS', '__STYLESHEETS_PLACEHOLDER__');\n")
|
||||
->write("\$context['definition']->set('SCRIPTS', '__SCRIPTS_PLACEHOLDER__');\n")
|
||||
->write("\$this->getEnvironment()->get_assets_bag()->add_{$this->get_setters_name()}(\$asset);")
|
||||
;
|
||||
}
|
||||
|
Reference in New Issue
Block a user