Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Winkler <git@lw1.at>2020-06-04 14:47:54 +0300
committerGitHub <noreply@github.com>2020-06-04 14:47:54 +0300
commita35070be5146539999fdd02d5323f466d314192b (patch)
treea7f280e0f371f5b5370547b67ae63d142e341126 /plugins/Insights
parent2851045e2ffd0f71fa1a56b2b6cab35cc7b1b4ab (diff)
Twig 3 upgrade (#15573)
* proof of concept of Twig 3 upgrade * some for if template fixes * potentially fix RenderTokenParser * comment out RenderTokenParser * clearCompiledTemplates() using unlinkRecursive() * macro imported in block and used in subblock is not valid twigphp/Twig#3090 * more template fixes * remove non existing clearTemplateCache() * add missing parameter to unlinkRecursive * Use custom MethodCallExpression to fix RenderTokenParser * increase minimum php version to 7.2.5 * submodule update * fix twig loop filter * updates expected UI files * fix twig loop filter * fix twig loop filter * fix neutral evolution check * fix macro usage * convert some conditions to filters * fix macro include * remove debug code as default logging is good enough * submodule updates Co-authored-by: sgiehl <stefan@matomo.org>
Diffstat (limited to 'plugins/Insights')
-rw-r--r--plugins/Insights/templates/overviewWidget.twig3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Insights/templates/overviewWidget.twig b/plugins/Insights/templates/overviewWidget.twig
index 3c7f07145e..144d7fbe47 100644
--- a/plugins/Insights/templates/overviewWidget.twig
+++ b/plugins/Insights/templates/overviewWidget.twig
@@ -5,7 +5,7 @@
<div class="dataTableScroller">
<table class="dataTable"
title="{{ consideredGrowth|e('html_attr') }} {{ consideredChanges|e('html_attr') }}">
- {% for dataTable in reports.getDataTables() if dataTable.getRowsCount > 0 %}
+ {% for dataTable in reports.getDataTables()|filter(dataTable => dataTable.getRowsCount > 0) %}
{% set metadata = dataTable.getAllTableMetadata %}
<thead>
@@ -17,7 +17,6 @@
{% include "@Insights/table_row.twig" %}
{% endfor %}
</tbody>
-
{% endfor %}
</table>
</div>