mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
fixed config bugs in rest client
This commit is contained in:
@@ -58,8 +58,8 @@ $autoload['packages'] = array();
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
//$autoload['libraries'] = array();
|
||||
$autoload['libraries'] = array('session');
|
||||
$autoload['libraries'] = array();
|
||||
//$autoload['libraries'] = array('session');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
||||
@@ -509,4 +509,4 @@ $config['rest_ajax_only'] = FALSE;
|
||||
| Language file to load from the language directory
|
||||
|
|
||||
*/
|
||||
$config['rest_language'] = 'en_US';
|
||||
$config['rest_language'] = 'en-US';
|
||||
|
||||
@@ -22,7 +22,7 @@ class Person extends REST_Controller
|
||||
/**
|
||||
* Person API constructor.
|
||||
*/
|
||||
private function __construct()
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class Person_model extends DB_Model
|
||||
{
|
||||
if (is_null($person_id))
|
||||
{
|
||||
$query = $this->db->get_where('public.tbl_person', array('vorname' => 'Christian'));
|
||||
$query = $this->db->get_where('public.tbl_person', array());
|
||||
return $query->result_object();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user