13 lines
351 B
PHP
13 lines
351 B
PHP
<?php
|
|
|
|
OC_JSON::checkAdminUser();
|
|
OCP\JSON::callCheck();
|
|
OC_JSON::setContentTypeHeader();
|
|
|
|
$appid = OC_App::enable($_POST['appid']);
|
|
if($appid !== false) {
|
|
OC_JSON::success(array('data' => array('appid' => $appid)));
|
|
} else {
|
|
$l = OC_L10N::get('settings');
|
|
OC_JSON::error(array("data" => array( "message" => $l->t("Could not enable app. ") )));
|
|
}
|