Update storage.php

This commit is contained in:
Namhyeon Go 2018-10-21 03:55:37 +09:00 committed by GitHub
parent e6e54a6759
commit bb820d9be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;