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:
authorThomas Steur <thomas.steur@gmail.com>2015-01-06 06:18:21 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-01-07 06:35:38 +0300
commit397756e0c3269c6c0a84e813dfcf7724a12d0635 (patch)
tree416db874fb6311735161db9d0535063ca4cc6e46 /plugins/Ecommerce/Controller.php
parenta86f5bff6cf90d8341c33ec4b64994ec91a9fe16 (diff)
show a headline in ecommerce log, show correct headline in ecommerce overview, added some ui tests
Diffstat (limited to 'plugins/Ecommerce/Controller.php')
-rw-r--r--plugins/Ecommerce/Controller.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/Ecommerce/Controller.php b/plugins/Ecommerce/Controller.php
index 322756eda4..b78e6aebe2 100644
--- a/plugins/Ecommerce/Controller.php
+++ b/plugins/Ecommerce/Controller.php
@@ -24,18 +24,22 @@ class Controller extends \Piwik\Plugins\Goals\Controller
$view = $this->getGoalReportView($idGoal = Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER);
$view->displayFullReport = false;
- $view->showHeadline = true;
+ $view->headline = Piwik::translate('Goals_EcommerceOverview');
return $view->render();
}
public function getEcommerceLog($fetch = false)
{
+ $view = new View('@Ecommerce/ecommerceLog');
+ $this->setGeneralVariablesView($view);
+
$saveGET = $_GET;
$_GET['segment'] = urlencode('visitEcommerceStatus!=none');
$_GET['widget'] = 1;
- $output = FrontController::getInstance()->dispatch('Live', 'getVisitorLog', array($fetch));
+ $view->ecommerceLog = FrontController::getInstance()->dispatch('Live', 'getVisitorLog', array($fetch));
$_GET = $saveGET;
- return $output;
+
+ return $view->render();
}
public function index()