Fixed: code review done

This commit is contained in:
shazar rahman
2026-11-04 19:00:22 +05:30
parent 1004cde25e
commit c63c8b1ac7
4 changed files with 7 additions and 8 deletions

View File

@@ -3449,8 +3449,8 @@ exit;
$post_data .= (isset($params['controller']) ? $params['controller'] : Context::getContext()->controller->controller_name);
$post_data .= defined('_PS_HOST_MODE_') ? '-od' : '';
break;
case 'register-install':
$post_data .= '&method=register-install&data='.urlencode(json_encode($params['install_data']));
case 'installation':
$post_data .= '&method=installation&data='.urlencode(json_encode($params['install_data']));
break;
case 'check-version':
$post_data .= '&method=check-version&autoupgrade='.(int)(Module::isInstalled('qloautoupgrade') && Module::isEnabled('qloautoupgrade'));

View File

@@ -3117,7 +3117,6 @@ class AdminControllerCore extends Controller
'submit_form_ajax' => (int)Tools::getValue('submitFormAjax')
));
// get upgrade available info from cache only, the cache is refreshed in background by ajaxProcessCheckUpgrade()
if (file_exists(_PS_ROOT_DIR_.Upgrader::CACHE_FILE_UPGRADE_AVAILABE)) {
$content = Tools::file_get_contents( _PS_ROOT_DIR_.Upgrader::CACHE_FILE_UPGRADE_AVAILABE);
$upgradeInfo = simplexml_load_string($content);

View File

@@ -64,7 +64,7 @@ class InstallControllerHttpConfigure extends InstallControllerHttp
'marketingConsent' => Tools::getValue('marketing_consent'),
];
$objModelInstall = new InstallModelInstall();
$objModelInstall->registerInstall($qloData);
$objModelInstall->setNotification($qloData);
// END
}

View File

@@ -622,8 +622,8 @@ class InstallModelInstall extends InstallAbstractModel
'marketingConsent' => $data['marketing_consent'],
];
// Register install
$this->registerInstall($qloData);
// Qlo Notification
$this->setNotification($qloData);
return true;
}
@@ -632,9 +632,9 @@ class InstallModelInstall extends InstallAbstractModel
* @param array $installData
* @return bool
*/
public function registerInstall($installData)
public function setNotification($installData)
{
Tools::addonsRequest('register-install', array(
Tools::addonsRequest('installation', array(
'install_data' => $installData,
'version' => _QLO_INSTALL_VERSION_,
'iso_lang' => $this->language->getLanguageIso(),