From 2e0fd822f8c613b65d81362cf3e252fd55ac7a6f Mon Sep 17 00:00:00 2001 From: Geo Varghese Date: Sun, 29 Nov 2020 02:54:00 +0530 Subject: [PATCH] 4.8.0 DF quick fix fro cronjob --- controllers/dataforseo.ctrl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/dataforseo.ctrl.php b/controllers/dataforseo.ctrl.php index 5979c93e..928dc411 100644 --- a/controllers/dataforseo.ctrl.php +++ b/controllers/dataforseo.ctrl.php @@ -176,6 +176,8 @@ function __getSERPResults($keywordInfo, $showAll = false, $seId = false, $cron = $countryCtrl = new CountryController(); $countryList = $countryCtrl->__getAllCountryAsList(); + $reportCtrler = new ReportController(); + // set country name as location if (!empty($keywordInfo['country_code'])) { $keywordInfo['location_name'] = $countryList[$keywordInfo['country_code']]; @@ -203,7 +205,7 @@ function __getSERPResults($keywordInfo, $showAll = false, $seId = false, $cron = // to update cron that report executed for akeyword on a search engine if ($cron) { - $this->saveCronTrackInfo($keywordInfo['id'], $seInfoId, $time); + $reportCtrler->saveCronTrackInfo($keywordInfo['id'], $seInfoId, $time); } // verify results array having search results