Updated: Code review changes implemented

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
shazar rahman
2026-09-11 16:51:34 +05:30
parent 96ff9be0df
commit 13330029d8
5 changed files with 8 additions and 8 deletions

View File

@@ -403,7 +403,7 @@ abstract class ModuleCore
// Install module and retrieve the installation id
$result = Db::getInstance()->insert($this->table, array('name' => $this->name, 'active' => 1, 'version' => $this->version));
if (!$result) {
$this->_errors[] = Tools::displayError('Technical error: PrestaShop could not install this module.');
$this->_errors[] = Tools::displayError('Technical error: QloApps could not install this module.');
return false;
}
$this->id = Db::getInstance()->Insert_ID();

View File

@@ -337,7 +337,7 @@ class AdminLocalizationControllerCore extends AdminController
array(
'type' => 'radio',
'label' => $this->l('Download pack data'),
'desc' => $this->l('If set to yes then the localization pack will be downloaded from prestashop.com. Otherwise the local xml file found in the localization folder of your QloApps installation will be used.'),
'desc' => $this->l('If set to yes then the localization pack will be downloaded from QloApps API. Otherwise the local xml file found in the localization folder of your QloApps installation will be used.'),
'name' => 'download_updated_pack',
'is_bool'=> true,
'values' => array(

View File

@@ -301,7 +301,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
'required' => false,
'hint' => array(
$this->l('This will reset the order.'),
$this->l('If a value specified, each of your current product (from the selected supplier and warehouse) with a quantity lower than or equal to this value will be loaded. This means that PrestaShop will pre-fill this order with the products that are low on quantity.'),
$this->l('If a value specified, each of your current product (from the selected supplier and warehouse) with a quantity lower than or equal to this value will be loaded. This means that QloApps will pre-fill this order with the products that are low on quantity.'),
),
),
),

View File

@@ -377,7 +377,7 @@ class AdminThemesControllerCore extends AdminController
'label' => $this->l('Name of the theme\'s directory'),
'name' => 'directory',
'required' => true,
'hint' => $this->l('If the directory does not exist, PrestaShop will create it automatically.'),
'hint' => $this->l('If the directory does not exist, QloApps will create it automatically.'),
);
$theme_query = Theme::getThemes();

View File

@@ -280,17 +280,17 @@ class AdminWebserviceControllerCore extends AdminController
if (function_exists('apache_get_modules')) {
$apache_modules = apache_get_modules();
if (!in_array('mod_auth_basic', $apache_modules)) {
$this->warnings[] = $this->l('Please activate the \'mod_auth_basic\' Apache module to allow authentication of PrestaShop\'s webservice.');
$this->warnings[] = $this->l('Please activate the \'mod_auth_basic\' Apache module to allow authentication of QloApps\'s webservice.');
}
if (!in_array('mod_rewrite', $apache_modules)) {
$this->warnings[] = $this->l('Please activate the \'mod_rewrite\' Apache module to allow the PrestaShop webservice.');
$this->warnings[] = $this->l('Please activate the \'mod_rewrite\' Apache module to allow the QloApps webservice.');
}
} else {
$this->warnings[] = $this->l('We could not check to see if basic authentication and rewrite extensions have been activated. Please manually check if they\'ve been activated in order to use the PrestaShop webservice.');
$this->warnings[] = $this->l('We could not check to see if basic authentication and rewrite extensions have been activated. Please manually check if they\'ve been activated in order to use the QloApps webservice.');
}
}
if (!extension_loaded('SimpleXML')) {
$this->warnings[] = $this->l('Please activate the \'SimpleXML\' PHP extension to allow testing of PrestaShop\'s webservice.');
$this->warnings[] = $this->l('Please activate the \'SimpleXML\' PHP extension to allow testing of QloApps\'s webservice.');
}
if (!configuration::get('PS_SSL_ENABLED')) {
$this->warnings[] = $this->l('It is preferable to use SSL (https:) for webservice calls, as it avoids the "man in the middle" type security issues.');