aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/twig/environment.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-02-07 12:23:21 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-02-18 17:30:31 +0100
commitf7c5098c60688ab8553732d5129680c959355e15 (patch)
tree3efbf96258179ec504e927710bc695028a9f807e /phpBB/phpbb/template/twig/environment.php
parentf253a853b8381a343f98c29bb399c8128695b696 (diff)
downloadforums-f7c5098c60688ab8553732d5129680c959355e15.tar
forums-f7c5098c60688ab8553732d5129680c959355e15.tar.gz
forums-f7c5098c60688ab8553732d5129680c959355e15.tar.bz2
forums-f7c5098c60688ab8553732d5129680c959355e15.tar.xz
forums-f7c5098c60688ab8553732d5129680c959355e15.zip
[ticket/14457] CS
PHPBB3-14457
Diffstat (limited to 'phpBB/phpbb/template/twig/environment.php')
-rw-r--r--phpBB/phpbb/template/twig/environment.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/template/twig/environment.php b/phpBB/phpbb/template/twig/environment.php
index 8b35497122..27a475f046 100644
--- a/phpBB/phpbb/template/twig/environment.php
+++ b/phpBB/phpbb/template/twig/environment.php
@@ -213,8 +213,8 @@ class environment extends \Twig_Environment
{
$placeholder_salt = unique_id();
- $context['definition']->set('SCRIPTS', '__SCRIPTS_'.$placeholder_salt.'__');
- $context['definition']->set('STYLESHEETS', '__STYLESHEETS_'.$placeholder_salt.'__');
+ $context['definition']->set('SCRIPTS', '__SCRIPTS_' . $placeholder_salt . '__');
+ $context['definition']->set('STYLESHEETS', '__STYLESHEETS_' . $placeholder_salt . '__');
$output = parent::render($name, $context);
@@ -230,8 +230,8 @@ class environment extends \Twig_Environment
*/
private function inject_assets($output, $placeholder_salt)
{
- $output = str_replace('__SCRIPTS_'.$placeholder_salt.'__', $this->assets_bag->get_stylesheets_content(), $output);
- $output = str_replace('__STYLESHEETS_'.$placeholder_salt.'__', $this->assets_bag->get_scripts_content(), $output);
+ $output = str_replace('__SCRIPTS_' . $placeholder_salt . '__', $this->assets_bag->get_stylesheets_content(), $output);
+ $output = str_replace('__STYLESHEETS_' . $placeholder_salt . '__', $this->assets_bag->get_scripts_content(), $output);
return $output;
}