Fix backed call
This commit is contained in:
@@ -311,7 +311,7 @@ class WrenchApi extends BaseController
|
||||
|
||||
if ( $call_backend == true){
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
$ret = $wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = $ret;
|
||||
/* $this->load->model('BackendModel');
|
||||
$out = array();
|
||||
|
||||
@@ -21,11 +21,11 @@ class BackendModel extends Model
|
||||
}
|
||||
|
||||
|
||||
public function wrenchboard_api($in, &$out = array()) {
|
||||
public function wrenchboard_api($in, $out = array()) {
|
||||
log_message('critical', "wrenchboard_api-STARTING" );
|
||||
$out = $in;
|
||||
$ret =1;
|
||||
/* $this->wrenchboard_load();
|
||||
//$out = $in;
|
||||
//$ret =1;
|
||||
$this->wrenchboard_load();
|
||||
if (!is_array($in)) {
|
||||
$in = array();
|
||||
}
|
||||
@@ -41,7 +41,7 @@ $ret =1;
|
||||
error_log(json_encode($in));
|
||||
}
|
||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
*/
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user