mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
FHC-Controller: changed scope of outputJson from private to protected
This commit is contained in:
@@ -96,7 +96,7 @@ class FHC_Controller extends CI_Controller
|
||||
*/
|
||||
protected function outputJsonSuccess($mixed)
|
||||
{
|
||||
$this->_outputJson(success($mixed));
|
||||
$this->outputJson(success($mixed));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -105,7 +105,7 @@ class FHC_Controller extends CI_Controller
|
||||
*/
|
||||
protected function outputJsonError($mixed)
|
||||
{
|
||||
$this->_outputJson(error($mixed));
|
||||
$this->outputJson(error($mixed));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,13 +119,10 @@ class FHC_Controller extends CI_Controller
|
||||
exit;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
// Private methods
|
||||
|
||||
/**
|
||||
* Utility method to output using JSON as content type
|
||||
*/
|
||||
private function _outputJson($mixed)
|
||||
protected function outputJson($mixed)
|
||||
{
|
||||
$this->output->set_content_type('application/json')->set_output(json_encode($mixed));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user