public function postProcess() { global $currentIndex; if ($this->enableCalendar()) { $calendarTab = new AdminStats(); $calendarTab->postProcess(); } if (Tools::isSubmit('submitSettings')) { if ($this->tabAccess['edit'] === '1') { if (Configuration::updateValue('TRACKING_DIRECT_TRAFFIC', (int) Tools::getValue('tracking_dt'))) { Tools::redirectAdmin($currentIndex . '&conf=4&token=' . Tools::getValue('token')); } } } if (ModuleGraph::getDateBetween() != Configuration::get('PS_REFERRERS_CACHE_LIKE') or Tools::isSubmit('submitRefreshCache')) { Referrer::refreshCache(); } if (Tools::isSubmit('submitRefreshIndex')) { Referrer::refreshIndex(); } return parent::postProcess(); }
private function _postProcess() { include_once dirname(__FILE__) . '/../..' . $this->_adminPath . '/tabs/AdminStats.php'; $calendarTab = new AdminStats(); $calendarTab->postProcess(); }