server/settings/ajax/disableapp.php
Lukas Reschke 9b9f5b1a8a Remove setContentTypeHeader()
`OC_JSON::success` and `OC_JSON::error` are calling
`OC_JSON::encodedPrint`, which already sets these headers. So this two
calls are uneeded duplicates.
2013-01-11 17:09:36 +01:00

7 lines
112 B
PHP

<?php
OC_JSON::checkAdminUser();
OCP\JSON::callCheck();
OC_App::disable($_POST['appid']);
OC_JSON::success();