API messages should not be translated

This commit is contained in:
phl0
2024-08-28 14:29:26 +02:00
parent 21f5525c97
commit d22f7fc07a

View File

@@ -117,11 +117,11 @@ class API extends CI_Controller {
header("Content-type: text/xml");
if($this->api_model->access($key) == __("No Key Found") || $this->api_model->access($key) == __("Key Disabled")) {
echo "<auth>";
echo "<message>" . __("Key Invalid - either not found or disabled") . "</message>";
echo "<message>Key Invalid - either not found or disabled</message>";
echo "</auth>";
} else {
echo "<auth>";
echo "<status>" . __("Valid") . "</status>";
echo "<status>Valid</status>";
echo "<rights>".$this->api_model->access($key)."</rights>";
echo "</auth>";
$this->api_model->update_last_used($key);