File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ abstract class REST_Controller extends CI_Controller {
360360 protected $ text_lang_strings = [
361361 'text_rest_invalid_api_key ' => 'Invalid API key %s ' , // %s is the REST API key
362362 'text_rest_invalid_credentials ' => 'Invalid credentials ' ,
363- 'text_rest_ip_denied ' => 'IP denied ' =>
363+ 'text_rest_ip_denied ' => 'IP denied ' ,
364364 'text_rest_ip_unauthorized ' => 'IP unauthorized ' ,
365365 'text_rest_unauthorized ' => 'Unauthorized ' ,
366366 'text_rest_ajax_only ' => 'Only Ajax requests are only allowed ' ,
@@ -607,7 +607,7 @@ public function _remap($object_called, $arguments)
607607
608608 $ this ->response ([
609609 $ this ->config ->item ('rest_status_field_name ' ) => FALSE ,
610- $ this ->config ->item ('rest_message_field_name ' ) => sprintf ($ this ->text_lang_strings ['text_rest_invalid_api_key ' ], $ this ->rest ->key );
610+ $ this ->config ->item ('rest_message_field_name ' ) => sprintf ($ this ->text_lang_strings ['text_rest_invalid_api_key ' ], $ this ->rest ->key )
611611 ], self ::HTTP_FORBIDDEN );
612612 }
613613
You can’t perform that action at this time.
0 commit comments