From 9eba09ddf796b1220d23fb64895a3cd93c95db1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s?= Date: Thu, 15 Jun 2023 10:04:58 +0200 Subject: [PATCH] =?UTF-8?q?hotfix=20Ticket=20#097414=20traducci=C3=B3n=20m?= =?UTF-8?q?ensajes=20de=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rest/core/query.php | 2 +- web/rest-service.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rest/core/query.php b/rest/core/query.php index 4d398e93..93f240a3 100644 --- a/rest/core/query.php +++ b/rest/core/query.php @@ -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 diff --git a/web/rest-service.php b/web/rest-service.php index dac5ca9e..ded4fd94 100644 --- a/web/rest-service.php +++ b/web/rest-service.php @@ -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;