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-08-12 11:08:13 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-08-12 11:08:13 +0400
commitbb50bd9005a84659e4359b2c5bafa00bb7a5f9e1 (patch)
tree3f09e4ff1ef2bbb0be18bd709290d55a6d0a9ce1 /plugins/Goals
parentd8a152a87b557e93b5a218150fed72945633ccf4 (diff)
fixes #922 - use View factory in core plugins; post View.getView event (new hook)
Diffstat (limited to 'plugins/Goals')
-rw-r--r--plugins/Goals/Controller.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Goals/Controller.php b/plugins/Goals/Controller.php
index cd3115f064..725c176abd 100644
--- a/plugins/Goals/Controller.php
+++ b/plugins/Goals/Controller.php
@@ -29,7 +29,7 @@ class Piwik_Goals_Controller extends Piwik_Controller
}
$goalDefinition = $this->goals[$idGoal];
- $view = new Piwik_View('Goals/templates/single_goal.tpl');
+ $view = Piwik_View::factory('single_goal');
$view->currency = Piwik::getCurrency();
$goal = $this->getMetricsForGoal($idGoal);
foreach($goal as $name => $value)
@@ -112,7 +112,7 @@ class Piwik_Goals_Controller extends Piwik_Controller
function index()
{
- $view = new Piwik_View('Goals/templates/overview.tpl');
+ $view = Piwik_View::factory('overview');
$view->currency = Piwik::getCurrency();
$view->title = 'All goals - evolution';
@@ -147,7 +147,7 @@ class Piwik_Goals_Controller extends Piwik_Controller
function addNewGoal()
{
- $view = new Piwik_View('Goals/templates/add_new_goal.tpl');
+ $view = Piwik_View::factory('add_new_goal');
$view->userCanEditGoals = Piwik::isUserHasAdminAccess($this->idSite);
$view->currency = Piwik::getCurrency();
$view->onlyShowAddNewGoal = true;