aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/twig/node/includejs.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-01-17 20:11:36 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-01-25 00:31:45 +0100
commit52b3d54805af6d0a89ede1cd2acac92cd95693c0 (patch)
tree83b86f33995d5cdc69d54e73b8da2d3379e41c98 /phpBB/phpbb/template/twig/node/includejs.php
parentd8af5ac4f9ddc1de16af73f5af1f2c465ee124e4 (diff)
downloadforums-52b3d54805af6d0a89ede1cd2acac92cd95693c0.tar
forums-52b3d54805af6d0a89ede1cd2acac92cd95693c0.tar.gz
forums-52b3d54805af6d0a89ede1cd2acac92cd95693c0.tar.bz2
forums-52b3d54805af6d0a89ede1cd2acac92cd95693c0.tar.xz
forums-52b3d54805af6d0a89ede1cd2acac92cd95693c0.zip
[ticket/13717] Set the assets after rendering the whole template
The goal being to be able to call INCLUDECSS/JS from anywhere in any tempalte or event PHPBB3-13717
Diffstat (limited to 'phpBB/phpbb/template/twig/node/includejs.php')
-rw-r--r--phpBB/phpbb/template/twig/node/includejs.php16
1 files changed, 2 insertions, 14 deletions
diff --git a/phpBB/phpbb/template/twig/node/includejs.php b/phpBB/phpbb/template/twig/node/includejs.php
index e77f2afeed..505b49757b 100644
--- a/phpBB/phpbb/template/twig/node/includejs.php
+++ b/phpBB/phpbb/template/twig/node/includejs.php
@@ -18,20 +18,8 @@ class includejs extends \phpbb\template\twig\node\includeasset
/**
* {@inheritdoc}
*/
- public function get_definition_name()
+ public function get_setters_name()
{
- return 'SCRIPTS';
- }
-
- /**
- * {@inheritdoc}
- */
- protected function append_asset(\Twig_Compiler $compiler)
- {
- $compiler
- ->raw("<script type=\"text/javascript\" src=\"' . ")
- ->raw("\$asset_file")
- ->raw(". '\"></script>\n")
- ;
+ return 'script';
}
}