Skip to content
Snippets Groups Projects
Commit bcf92bad authored by Robin Appelman's avatar Robin Appelman
Browse files

dont set content type to json for Apps

parent 63e68632
Branches
No related tags found
No related merge requests found
...@@ -61,8 +61,10 @@ class OC_JSON{ ...@@ -61,8 +61,10 @@ class OC_JSON{
/** /**
* Encode and print $data in json format * Encode and print $data in json format
*/ */
public static function encodedPrint($data){ public static function encodedPrint($data,$setContentType=true){
if($setContentType){
self::setContentTypeHeader(); self::setContentTypeHeader();
}
echo json_encode($data); echo json_encode($data);
} }
} }
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>"> <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>">
<?php echo $app['name'] ?> <?php echo $app['name'] ?>
<span class="hidden"> <span class="hidden">
<?php OC_JSON::encodedPrint($app) ?> <?php OC_JSON::encodedPrint($app,false) ?>
</span> </span>
</li> </li>
<?php endforeach;?> <?php endforeach;?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment