aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2020-01-18 14:34:32 +0100
committerMarc Alexander <admin@m-a-styles.de>2020-01-18 14:34:32 +0100
commitebd9d0fe25bbe776d9d999d714147a0fa2bada05 (patch)
treebf11ed8b664d0c728a6598feaf4a96494556e94a
parentMerge branch '3.2.x' into 3.3.x (diff)
parent[ticket/16323] Replace the spaceless tag with its homologue filter (diff)
downloadphpbb-ebd9d0fe25bbe776d9d999d714147a0fa2bada05.tar.gz
phpbb-ebd9d0fe25bbe776d9d999d714147a0fa2bada05.tar.bz2
phpbb-ebd9d0fe25bbe776d9d999d714147a0fa2bada05.zip
Merge pull request #5828 from AlfredoRamos/ticket/16323
[ticket/16323] Replace the spaceless tag with its homologue filter
-rw-r--r--phpBB/phpbb/template/twig/lexer.php2
-rw-r--r--phpBB/styles/prosilver/template/navbar_footer.html8
2 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/phpbb/template/twig/lexer.php b/phpBB/phpbb/template/twig/lexer.php
index 6615a46067..10346ac299 100644
--- a/phpBB/phpbb/template/twig/lexer.php
+++ b/phpBB/phpbb/template/twig/lexer.php
@@ -72,6 +72,8 @@ class lexer extends \Twig_Lexer
'endspaceless',
'verbatim',
'endverbatim',
+ 'apply',
+ 'endapply',
);
// Fix tokens that may have inline variables (e.g. <!-- DEFINE $TEST = '{FOO}')
diff --git a/phpBB/styles/prosilver/template/navbar_footer.html b/phpBB/styles/prosilver/template/navbar_footer.html
index 4e3d1e295e..1c5031e9b9 100644
--- a/phpBB/styles/prosilver/template/navbar_footer.html
+++ b/phpBB/styles/prosilver/template/navbar_footer.html
@@ -4,22 +4,22 @@
<ul id="nav-footer" class="nav-footer linklist" role="menubar">
<li class="breadcrumbs">
<!-- IF U_SITE_HOME -->
- {% spaceless %}
+ {% apply spaceless %}
<span class="crumb">
<a href="{U_SITE_HOME}" data-navbar-reference="home">
<i class="icon fa-home fa-fw" aria-hidden="true"></i><span>{L_SITE_HOME}</span>
</a>
</span>
- {% endspaceless %}
+ {% endapply %}
<!-- ENDIF -->
<!-- EVENT overall_footer_breadcrumb_prepend -->
- {% spaceless %}
+ {% apply spaceless %}
<span class="crumb">
<a href="{U_INDEX}" data-navbar-reference="index">
<!-- IF not U_SITE_HOME --><i class="icon fa-home fa-fw" aria-hidden="true"></i><!-- ENDIF --><span>{L_INDEX}</span>
</a>
</span>
- {% endspaceless %}
+ {% endapply %}
<!-- EVENT overall_footer_breadcrumb_append -->
</li>
<!-- IF U_WATCH_FORUM_LINK and not S_IS_BOT -->