diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-16 09:20:17 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-16 09:20:17 +0300 |
commit | 8cace074b03bbc9fa8f1175b51613eb45ffdf67b (patch) | |
tree | a02f55140a9af77e6c9281162d0a80e17e508fe7 /core/Plugin/Visualization.php | |
parent | 302f780341833e2cf2a876b36160cc881964ba0b (diff) |
Force inconsistencies in API output to maintain backwards compatibility. format_processed_metrics query param changed to format_metrics. If set to 'bc', inconsistencies are enforced. Inconsistency logic is placed in a special Piwik\API\Inconsistencies class to allow it to be removed w/ ease in 3.0.
Diffstat (limited to 'core/Plugin/Visualization.php')
-rw-r--r-- | core/Plugin/Visualization.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Plugin/Visualization.php b/core/Plugin/Visualization.php index c82812b9f7..91a79d2a58 100644 --- a/core/Plugin/Visualization.php +++ b/core/Plugin/Visualization.php @@ -164,10 +164,9 @@ class Visualization extends ViewDataTable $this->overrideSomeConfigPropertiesIfNeeded(); try { - $this->beforeLoadDataTable(); - $this->loadDataTableFromAPI(array('disable_generic_filters' => 1)); + $this->loadDataTableFromAPI(array('disable_generic_filters' => 1, 'format_metrics' => 0)); $this->postDataTableLoadedFromAPI(); $requestPropertiesAfterLoadDataTable = $this->requestConfig->getProperties(); @@ -178,7 +177,6 @@ class Visualization extends ViewDataTable $this->beforeRender(); $this->logMessageIfRequestPropertiesHaveChanged($requestPropertiesAfterLoadDataTable); - } catch (NoAccessException $e) { throw $e; } catch (\Exception $e) { |