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:
Diffstat (limited to 'core/Twig.php')
-rwxr-xr-xcore/Twig.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/Twig.php b/core/Twig.php
index 8c5ce8a2ef..8dd259fc2d 100755
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -42,18 +42,19 @@ class Twig
//get current theme
$manager = Plugin\Manager::getInstance();
- $theme = $manager->getThemeEnabled();
+ $theme = $manager->getThemeEnabled();
$loaders = array();
//create loader for custom theme to overwrite twig templates
- if($theme->getPluginName() != \Piwik\Plugin\Manager::DEFAULT_THEME){
+ if($theme->getPluginName() != \Piwik\Plugin\Manager::DEFAULT_THEME) {
$customLoader = $this->getCustomThemeLoader($theme);
- if($customLoader){
+ if ($customLoader) {
//make it possible to overwrite plugin templates
- $this->addCustomPluginNamespaces($customLoader,$theme->getPluginName());
+ $this->addCustomPluginNamespaces($customLoader, $theme->getPluginName());
$loaders[] = $customLoader;
}
}
+
$loaders[] = $loader;
$chainLoader = new Twig_Loader_Chain($loaders);