mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
API messages should not be translated
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user