From 460541389136e044c6d245c55d3d2042f4f331db Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 12 Apr 2019 14:29:45 +0200 Subject: [PATCH] FHC-Controller: changed scope of outputJson from private to protected --- application/core/FHC_Controller.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/application/core/FHC_Controller.php b/application/core/FHC_Controller.php index 5b6901f52..7b29b43e7 100644 --- a/application/core/FHC_Controller.php +++ b/application/core/FHC_Controller.php @@ -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)); }