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:
authormattab <matthieu.aubry@gmail.com>2014-06-06 10:22:03 +0400
committermattab <matthieu.aubry@gmail.com>2014-06-06 10:22:03 +0400
commitb0a26ed036d76da9292b180541436fb5f62224d4 (patch)
treee8735f1b8dce505c7e873e1dc3ba0dbf6eacdacc /core/Twig.php
parentc828db5ab6e32ab2d79449e214470c0ac526eb08 (diff)
Prevent notice PHP Fatal error: Call to a member function getPluginName() on a non-object in /home/travis/build/piwik/piwik/core/Twig.php on line 49
Diffstat (limited to 'core/Twig.php')
-rwxr-xr-xcore/Twig.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php
index 5b876859fc..c2022572c0 100755
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -46,7 +46,7 @@ class Twig
$loaders = array();
//create loader for custom theme to overwrite twig templates
- if($theme->getPluginName() != \Piwik\Plugin\Manager::DEFAULT_THEME) {
+ if($theme && $theme->getPluginName() != \Piwik\Plugin\Manager::DEFAULT_THEME) {
$customLoader = $this->getCustomThemeLoader($theme);
if ($customLoader) {
//make it possible to overwrite plugin templates