Skip to content

Commit 00aeef6

Browse files
committed
Fixed syntax bugs
1 parent e8c72e3 commit 00aeef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/libraries/REST_Controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)