aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/twig/node/includeasset.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2013-09-12 20:49:27 -0700
committerDavid King <imkingdavid@gmail.com>2013-09-12 20:49:27 -0700
commit484d45736304921e7225b8726de5c048b430b5bf (patch)
treec3dd99d6696c1eeea80e2c4a0de3d2b61609dc08 /phpBB/phpbb/template/twig/node/includeasset.php
parenta7ea874c0d9956e46a6e7a1595a7cfa7f5b931c7 (diff)
parent423357581415c7c10ed0ac51284014e839881bac (diff)
downloadforums-484d45736304921e7225b8726de5c048b430b5bf.tar
forums-484d45736304921e7225b8726de5c048b430b5bf.tar.gz
forums-484d45736304921e7225b8726de5c048b430b5bf.tar.bz2
forums-484d45736304921e7225b8726de5c048b430b5bf.tar.xz
forums-484d45736304921e7225b8726de5c048b430b5bf.zip
Merge pull request #1690 from EXreaction/ticket/11822
[ticket/11822] Use namespace lookup order for asset loading
Diffstat (limited to 'phpBB/phpbb/template/twig/node/includeasset.php')
-rw-r--r--phpBB/phpbb/template/twig/node/includeasset.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/template/twig/node/includeasset.php b/phpBB/phpbb/template/twig/node/includeasset.php
index 1cab416c79..0808e2b10e 100644
--- a/phpBB/phpbb/template/twig/node/includeasset.php
+++ b/phpBB/phpbb/template/twig/node/includeasset.php
@@ -40,10 +40,10 @@ abstract class phpbb_template_twig_node_includeasset extends Twig_Node
->write("\$local_file = \$this->getEnvironment()->get_phpbb_root_path() . \$asset_path;\n")
->write("if (!file_exists(\$local_file)) {\n")
->indent()
- ->write("\$local_file = \$this->getEnvironment()->getLoader()->getCacheKey(\$asset_path);\n")
+ ->write("\$local_file = \$this->getEnvironment()->findTemplate(\$asset_path);\n")
->write("\$asset->set_path(\$local_file, true);\n")
->outdent()
- ->write("\$asset->add_assets_version({$config['assets_version']});\n")
+ ->write("\$asset->add_assets_version('{$config['assets_version']}');\n")
->write("\$asset_file = \$asset->get_url();\n")
->write("}\n")
->outdent()