//typo
This commit is contained in:
@@ -83,7 +83,6 @@ class AdminDashboardControllerCore extends AdminController
|
||||
'date_to' => $this->context->employee->stats_date_to,
|
||||
);
|
||||
|
||||
$datas = Hook::exec('dashboardDatas', $params, $id_module, true);
|
||||
die(Tools::jsonEncode($datas));
|
||||
die(Tools::jsonEncode(Hook::exec('dashboardData', $params, $id_module, true)));
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ class Dashactivity extends Module
|
||||
|
||||
public function install()
|
||||
{
|
||||
if (!parent::install() || !$this->registerHook('dashboardZoneOne') || !$this->registerHook('dashboardDatas'))
|
||||
if (!parent::install() || !$this->registerHook('dashboardZoneOne') || !$this->registerHook('dashboardData'))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -52,7 +52,7 @@ class Dashactivity extends Module
|
||||
return $this->display(__FILE__, 'dashboard_zone_one.tpl');
|
||||
}
|
||||
|
||||
public function hookDashboardDatas($params)
|
||||
public function hookDashboardData($params)
|
||||
{
|
||||
$order_nbr = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
|
||||
SELECT COUNT(o.`id_order`)
|
||||
|
||||
@@ -42,7 +42,7 @@ class Dashproducts extends Module
|
||||
|
||||
public function install()
|
||||
{
|
||||
if (!parent::install() || !$this->registerHook('dashboardZoneTwo') || !$this->registerHook('dashboardDatas'))
|
||||
if (!parent::install() || !$this->registerHook('dashboardZoneTwo') || !$this->registerHook('dashboardData'))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -52,7 +52,7 @@ class Dashproducts extends Module
|
||||
return $this->display(__FILE__, 'dashboard_zone_two.tpl');
|
||||
}
|
||||
|
||||
public function hookDashboardDatas($params)
|
||||
public function hookDashboardData($params)
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class Dashtrends extends Module
|
||||
|
||||
public function install()
|
||||
{
|
||||
if (!parent::install() || !$this->registerHook('dashboardZoneTwo') || !$this->registerHook('dashboardDatas'))
|
||||
if (!parent::install() || !$this->registerHook('dashboardZoneTwo') || !$this->registerHook('dashboardData'))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -52,7 +52,7 @@ class Dashtrends extends Module
|
||||
return $this->display(__FILE__, 'dashboard_zone_two.tpl');
|
||||
}
|
||||
|
||||
public function hookDashboardDatas($params)
|
||||
public function hookDashboardData($params)
|
||||
{
|
||||
$gapi = Module::isInstalled('gapi') ? Module::getInstanceByName('gapi') : false;
|
||||
if (Validate::isLoadedObject($gapi))
|
||||
|
||||
Reference in New Issue
Block a user