Blame view

sources/settings/ajax/enableapp.php 338 Bytes
03e52840d   Kload   Init
1
2
3
4
5
6
7
8
9
10
11
12
  <?php
  
  OC_JSON::checkAdminUser();
  OCP\JSON::callCheck();
  
  $appid = OC_App::enable(OC_App::cleanAppId($_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. ") )));
  }