From d22f7fc07abe251adbd3e82961a8d9844059042d Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 28 Aug 2024 14:29:26 +0200 Subject: [PATCH] API messages should not be translated --- application/controllers/Api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Api.php b/application/controllers/Api.php index a2bdd5a83..65c696c53 100644 --- a/application/controllers/Api.php +++ b/application/controllers/Api.php @@ -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 ""; - echo "" . __("Key Invalid - either not found or disabled") . ""; + echo "Key Invalid - either not found or disabled"; echo ""; } else { echo ""; - echo "" . __("Valid") . ""; + echo "Valid"; echo "".$this->api_model->access($key).""; echo ""; $this->api_model->update_last_used($key);