Skip to content

Commit 44e86be

Browse files
Merge pull request chriskacerguis#316 from andreustimm/master
Check to include calls to models
2 parents 4c1213a + 959c9be commit 44e86be

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

application/libraries/REST_Controller.php

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,13 @@ public function __construct()
250250
}
251251

252252
// Merge both for one mega-args variable
253-
$this->_args = array_merge($this->_get_args,
254-
$this->_options_args,
255-
$this->_patch_args,
256-
$this->_head_args ,
257-
$this->_put_args,
258-
$this->_post_args,
259-
$this->_delete_args,
253+
$this->_args = array_merge($this->_get_args,
254+
$this->_options_args,
255+
$this->_patch_args,
256+
$this->_head_args ,
257+
$this->_put_args,
258+
$this->_post_args,
259+
$this->_delete_args,
260260
$this->{'_'.$this->request->method.'_args'}
261261
);
262262

@@ -510,7 +510,7 @@ public function response($data = null, $http_code = null, $continue = false)
510510
echo($output);
511511
ob_end_flush();
512512
ob_flush();
513-
flush();
513+
flush();
514514
}else{
515515
exit($output);
516516
}
@@ -1242,7 +1242,11 @@ protected function _perform_library_auth($username = '', $password = null)
12421242
return false;
12431243
}
12441244

1245-
$this->load->library($auth_library_class);
1245+
if (!is_callable(array($this->$auth_library_class, $auth_library_function))) {
1246+
1247+
$this->load->library($auth_library_class);
1248+
1249+
}
12461250

12471251
return $this->$auth_library_class->$auth_library_function($username, $password);
12481252
}

0 commit comments

Comments
 (0)