From bb820d9be690956de34541df3fa30d1942e767fc Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 21 Oct 2018 03:55:37 +0900 Subject: [PATCH] Update storage.php --- system/storage.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system/storage.php b/system/storage.php index d3bc068..c0c9cff 100644 --- a/system/storage.php +++ b/system/storage.php @@ -149,6 +149,16 @@ if(!function_exists("read_storage_file")) { if(!array_key_empty("encode_base64", $options)) { $result = base64_encode($result); } + + if(!array_key_empty("format", $options)) { + if(loadHelper("webpagetool")) { + if($options['format'] == "json") { + $result = get_parsed_json($result, array("stdClass" => true)); + } elseif($options['format'] == "xml") { + $result = get_parsed_xml($result); + } + } + } } return $result;