Skip to content

Commit ab9c836

Browse files
author
Phil Sturgeon
committed
Fixed some padding.
1 parent cb08579 commit ab9c836

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

application/libraries/REST_Controller.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function _remap($object_called, $arguments)
170170
// Get that useless shitty key out of here
171171
if (config_item('rest_enable_keys') AND $use_key AND $this->_allow === FALSE)
172172
{
173-
if (config_item('rest_enable_logging') AND $log_method)
173+
if (config_item('rest_enable_logging') AND $log_method)
174174
{
175175
$this->_log_request();
176176
}
@@ -406,9 +406,8 @@ protected function _detect_method()
406406

407407
protected function _detect_api_key()
408408
{
409-
410-
// Get the api key name variable set in the rest config file
411-
$api_key_variable = config_item('rest_key_name');
409+
// Get the api key name variable set in the rest config file
410+
$api_key_variable = config_item('rest_key_name');
412411

413412
// Work out the name of the SERVER entry based on config
414413
$key_name = 'HTTP_' . strtoupper(str_replace('-', '_', $api_key_variable));

0 commit comments

Comments
 (0)