@@ -20,7 +20,7 @@ |
||
20 | 20 | /* Return current action route */ |
21 | 21 | $action = Router::currentRouteAction(); |
22 | 22 | |
23 | -}catch(Exception $er){ |
|
23 | +} catch(Exception $er){ |
|
24 | 24 | |
25 | 25 | die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}."); |
26 | 26 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | if( ($this->getProtocol() == 'form') ){ |
62 | 62 | $this->ControllerForm($controller, $method, $data['POST']); |
63 | - }else { |
|
63 | + } else { |
|
64 | 64 | $data = (array_key_exists('data',$data['POST'])) ? json_decode($data['POST']['data'], true) : $data['GET']; |
65 | 65 | call_user_func_array([$controller,$method], $data); |
66 | 66 | } |