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:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-07-27 06:23:37 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-07-27 06:23:37 +0400
commitfcb8d4c90a5616327cb8f60cc3969889e9aa94d2 (patch)
tree758a54c3f3be69971100916cef4aeaf30f0d1152 /plugins/Dashboard
parent5c81297e7a4c4bf848d61fabd50ffb6af1103e05 (diff)
fix JSON stringify'd layout not completely decoded;
add defined(PIWIK_INCLUDE_PATH) before require_once per checklist
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/Controller.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Dashboard/Controller.php b/plugins/Dashboard/Controller.php
index 13214eae25..486bebf553 100644
--- a/plugins/Dashboard/Controller.php
+++ b/plugins/Dashboard/Controller.php
@@ -19,7 +19,11 @@ class Piwik_Dashboard_Controller extends Piwik_Controller
{
$view = new Piwik_View($template);
$this->setGeneralVariablesView($view);
+
+ // layout was JSON.stringified
$layout = html_entity_decode($this->getLayout());
+ $layout = str_replace("\\\"", "\"", $layout);
+
if(!empty($layout)
&& strstr($layout, '[[') == false) {
$layout = "'$layout'";