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:
authorThomas Steur <tsteur@users.noreply.github.com>2019-04-11 03:35:13 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-04-11 03:35:13 +0300
commit751fd191140048161a5844d1241d811e8ac0a847 (patch)
treed9f9043b1805a9e1bf4413e0faa44928bbf139b2
parent65b5523adf92c686f1448e858fa428b57d68a674 (diff)
fix #14307 template override in custom theme did not work anymore (#14337)
-rw-r--r--core/Twig.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php
index cac8624201..21d99751ba 100644
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -540,8 +540,9 @@ class Twig
$pluginManager = \Piwik\Plugin\Manager::getInstance();
$plugins = $pluginManager->getAllPluginsNames();
+ $pluginsDir = Manager::getPluginDirectory($pluginName);
+
foreach ($plugins as $name) {
- $pluginsDir = Manager::getPluginDirectory($name);
$path = sprintf("%s/templates/plugins/%s/", $pluginsDir, $name);
if (is_dir($path)) {
$loader->addPath(rtrim($path, '/'), $name);