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;