diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-14 12:57:03 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-14 12:57:10 +0200 |
commit | d8864d4f4bd54a314b1d7c7945578b95f24477d1 (patch) | |
tree | 96c19a72c77d3f5097c53a5e3c53931b91641ee9 /settings/ajax/enableapp.php | |
parent | d3bf01376150ffd5de18cdc53f5e66b0c4979526 (diff) | |
download | nextcloud-server-d8864d4f4bd54a314b1d7c7945578b95f24477d1.tar.gz nextcloud-server-d8864d4f4bd54a314b1d7c7945578b95f24477d1.zip |
show error when installing an app has failed
Diffstat (limited to 'settings/ajax/enableapp.php')
-rw-r--r-- | settings/ajax/enableapp.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index 639df2aecc0..cb116ebe4e8 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -5,6 +5,8 @@ require_once('../../lib/base.php'); OC_JSON::checkAdminUser(); OC_JSON::setContentTypeHeader(); -OC_App::enable($_POST['appid']); - -?> +if(OC_App::enable($_POST['appid'])){ + OC_JSON::success(); +}else{ + OC_JSON::error(); +} |