// Normalize + use $this->smarty instead of $this->context->smarty in modules

This commit is contained in:
rMalie
2011-12-30 14:59:57 +00:00
parent 0d4212f8b7
commit 443092c811
27 changed files with 87 additions and 86 deletions
+5 -5
View File
@@ -93,7 +93,7 @@ class TrackingFront extends Module
Tools::redirect('modules/trackingfront/stats.php');
}
}
$this->context->smarty->assign('errors', $errors);
$this->smarty->assign('errors', $errors);
}
if (Tools::isSubmit('submitDatePicker'))
@@ -164,9 +164,9 @@ class TrackingFront extends Module
Referrer::refreshCache(array(array('id_referrer' => (int)($this->context->cookie->tracking_id))), $fakeEmployee);
$referrer = new Referrer((int)($this->context->cookie->tracking_id));
$this->context->smarty->assign('referrer', $referrer);
$this->context->smarty->assign('datepickerFrom', $fakeEmployee->stats_date_from);
$this->context->smarty->assign('datepickerTo', $fakeEmployee->stats_date_to);
$this->smarty->assign('referrer', $referrer);
$this->smarty->assign('datepickerFrom', $fakeEmployee->stats_date_from);
$this->smarty->assign('datepickerTo', $fakeEmployee->stats_date_to);
$displayTab = array(
'uniqs' => $this->l('Unique visitors'),
@@ -182,7 +182,7 @@ class TrackingFront extends Module
'cart' => $this->l('Average cart'),
'reg_rate' => $this->l('Registration rate'),
'order_rate' => $this->l('Order rate'));
$this->context->smarty->assign('displayTab', $displayTab);
$this->smarty->assign('displayTab', $displayTab);
$products = Product::getSimpleProducts($this->context->language->id);
$productsArray = array();