diff options
Diffstat (limited to 'core/ajax/translations.php')
-rw-r--r-- | core/ajax/translations.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/ajax/translations.php b/core/ajax/translations.php index adaf7dcb758..2e436f8d84e 100644 --- a/core/ajax/translations.php +++ b/core/ajax/translations.php @@ -26,9 +26,7 @@ require_once('../../lib/base.php'); $app = $_POST["app"]; -// We send json data -header( "Content-Type: application/jsonrequest" ); $l = new OC_L10N( $app ); -echo json_encode( array( 'status' => 'success', 'data' => $l->getTranslations())); +OC_JSON::success(array('data' => $l->getTranslations())); ?> |