summaryrefslogtreecommitdiffstats
path: root/settings/ajax/enableapp.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-14 12:57:03 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-14 12:57:10 +0200
commitd8864d4f4bd54a314b1d7c7945578b95f24477d1 (patch)
tree96c19a72c77d3f5097c53a5e3c53931b91641ee9 /settings/ajax/enableapp.php
parentd3bf01376150ffd5de18cdc53f5e66b0c4979526 (diff)
downloadnextcloud-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.php8
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();
+}