]> source.dussan.org Git - nextcloud-server.git/commitdiff
return a message when app could not be enabled
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 12 Sep 2012 10:02:39 +0000 (12:02 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 12 Sep 2012 10:02:39 +0000 (12:02 +0200)
settings/ajax/enableapp.php

index b9cf6a13670733a7bb76674a09f51db4a5a1c463..1075a9a433c0e7f83546373e316804eb461e8719 100644 (file)
@@ -10,5 +10,5 @@ $appid = OC_App::enable($_POST['appid']);
 if($appid !== false) {
        OC_JSON::success(array('data' => array('appid' => $appid)));
 } else {
-       OC_JSON::error();
+       OC_JSON::error(array("data" => array( "message" => $l->t("Could not enable app. ") )));
 }