hotfix Ticket #097414 traducción mensajes de error
gitea/hedera-web/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Andrés 2023-06-15 10:04:58 +02:00
parent 74980fbdd7
commit 9eba09ddf7
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class Query extends Vn\Web\JsonRequest {
if ($db->checkWarnings()
&&($result = $db->query('SHOW WARNINGS'))) {
$sql = 'SELECT `description`, @warn `code`
FROM `message` WHERE `code` = @warn';
FROM `messageL10n` WHERE `code` = @warn';
while ($row = $result->fetch_object()) {
if ($row->Code == 1265

View File

@ -54,7 +54,7 @@ class RestService extends Service {
if ($e->getCode() == 1644) {
$eMessage = $e->getMessage();
$tMessage = $db->getValue(
'SELECT `description` FROM `message` WHERE `code` = #',
'SELECT `description` FROM `messageL10n` WHERE `code` = #',
[$eMessage]
);
if (!$tMessage) $tMessage = $eMessage;