mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
Merge pull request #5433 from marc1706/ticket/15542
[ticket/15542] Always append assets versions to assets
This commit is contained in:
commit
5179e4f93f
@ -50,7 +50,12 @@ abstract class includeasset extends \Twig_Node
|
||||
->write("\$asset->set_path(\$local_file, true);\n")
|
||||
->outdent()
|
||||
->write("}\n")
|
||||
->write("\$asset->add_assets_version('{$config['assets_version']}');\n")
|
||||
->outdent()
|
||||
->write("}\n")
|
||||
->write("\n")
|
||||
->write("if (\$asset->is_relative()) {\n")
|
||||
->indent()
|
||||
->write("\$asset->add_assets_version('{$config['assets_version']}');\n")
|
||||
->outdent()
|
||||
->write("}\n")
|
||||
->write("\$this->getEnvironment()->get_assets_bag()->add_{$this->get_setters_name()}(\$asset);")
|
||||
|
Loading…
x
Reference in New Issue
Block a user