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/Live
parentd8a152a87b557e93b5a218150fed72945633ccf4 (diff)
fixes #922 - use View factory in core plugins; post View.getView event (new hook)
Diffstat (limited to 'plugins/Live')
-rw-r--r--plugins/Live/Controller.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php
index 4b0580834c..7e305b1a05 100644
--- a/plugins/Live/Controller.php
+++ b/plugins/Live/Controller.php
@@ -13,7 +13,7 @@ class Piwik_Live_Controller extends Piwik_Controller
{
function widget()
{
- $view = new Piwik_View('Live/templates/index.tpl');
+ $view = Piwik_View::factory('index');
$this->setGeneralVariablesView($view);
$view->visitors = $this->getLastVisits($fetch = true);
echo $view->render();
@@ -26,7 +26,7 @@ class Piwik_Live_Controller extends Piwik_Controller
$limit = 10;
$api = new Piwik_API_Request("method=Live.getLastVisits&idSite=$idSite&limit=$limit&minIdVisit=$minIdVisit&format=php&serialize=0&disable_generic_filters=1");
- $view = new Piwik_View('Live/templates/lastVisits.tpl');
+ $view = Piwik_View::factory('lastVisits');
$visitors = $api->process();
if($minIdVisit == 0)
{
@@ -44,7 +44,7 @@ class Piwik_Live_Controller extends Piwik_Controller
function index()
{
- $view = new Piwik_View('Live/templates/structure.tpl');
+ $view = Piwik_View::factory('structure');
$this->setGeneralVariablesView($view);
$view->visitors = $this->getLastVisits($fetch = true);
echo $view->render();