Update storage.php

This commit is contained in:
Namhyeon Go 2018-10-21 04:00:21 +09:00 committed by GitHub
parent 958f429403
commit ea89b3a759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,13 +149,15 @@ 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);
} elseif($options['format'] == "dom") {
$result = get_parsed_dom($result);
}
}
}