fix(database): fix db connection error when not standard mysql port
This commit is contained in:
@@ -210,6 +210,14 @@ class ControllerExtensionModuleTgshop extends Controller
|
||||
'owner_notification_template' => $this->config->get('module_tgshop_owner_notification_template'),
|
||||
'customer_notification_template' => $this->config->get('module_tgshop_customer_notification_template'),
|
||||
],
|
||||
'db' => [
|
||||
'host' => DB_HOSTNAME,
|
||||
'database' => DB_DATABASE,
|
||||
'username' => DB_USERNAME,
|
||||
'password' => DB_PASSWORD,
|
||||
'prefix' => DB_PREFIX,
|
||||
'port' => DB_PORT,
|
||||
],
|
||||
'logs' => [
|
||||
'path' => DIR_LOGS,
|
||||
],
|
||||
@@ -226,7 +234,7 @@ class ControllerExtensionModuleTgshop extends Controller
|
||||
protected function validate(): bool
|
||||
{
|
||||
if (! $this->user->hasPermission('modify', 'extension/module/tgshop')) {
|
||||
$this->error['error_warning'] = $this->language->get('error_permission');
|
||||
$this->error['telecart_error_warning'] = $this->language->get('error_permission');
|
||||
}
|
||||
|
||||
foreach ($this->getSettingsConfig() as $configs) {
|
||||
|
||||
Reference in New Issue
Block a user