diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-04-11 03:35:13 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-04-11 03:35:13 +0300 |
commit | 751fd191140048161a5844d1241d811e8ac0a847 (patch) | |
tree | d9f9043b1805a9e1bf4413e0faa44928bbf139b2 | |
parent | 65b5523adf92c686f1448e858fa428b57d68a674 (diff) |
fix #14307 template override in custom theme did not work anymore (#14337)
-rw-r--r-- | core/Twig.php | 3 |
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); |