From: Robin Appelman Date: Sun, 25 Sep 2011 22:19:34 +0000 (+0200) Subject: dont set content type to json for Apps X-Git-Tag: v3.0~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bcf92badd1dae888fec85c1b3615a924a2e6a859;p=nextcloud-server.git dont set content type to json for Apps --- diff --git a/lib/json.php b/lib/json.php index 47d5e82fbb0..5ebd6c6b759 100644 --- a/lib/json.php +++ b/lib/json.php @@ -61,8 +61,10 @@ class OC_JSON{ /** * Encode and print $data in json format */ - public static function encodedPrint($data){ - self::setContentTypeHeader(); + public static function encodedPrint($data,$setContentType=true){ + if($setContentType){ + self::setContentTypeHeader(); + } echo json_encode($data); } } diff --git a/settings/templates/apps.php b/settings/templates/apps.php index ba2385d794f..6f16152bc5b 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -12,7 +12,7 @@
  • data-id="">