diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-11-22 10:06:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-22 10:06:33 +0100 |
commit | 9c52f16dbbc95e32db33e0fb6ee7191c2a260e41 (patch) | |
tree | 23c39cbde6a91188ff05d31c715ef7170a6f1966 /settings | |
parent | a02d0975dd7152d4b1a42ab71eb3824a84e621ec (diff) | |
parent | 8ee11956da956324b63849002af33c92d5ef931e (diff) | |
download | nextcloud-server-9c52f16dbbc95e32db33e0fb6ee7191c2a260e41.tar.gz nextcloud-server-9c52f16dbbc95e32db33e0fb6ee7191c2a260e41.zip |
Merge pull request #2228 from nextcloud/use-appid-instead-of-app-element
Use app ID instead of object
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/enableapp.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index b378b3c918d..cf1b7f29db5 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -35,7 +35,7 @@ try { $appId = (string)$_POST['appid']; $appId = OC_App::cleanAppId($appId); $app->enable($appId, $groups); - OC_JSON::success(['data' => ['update_required' => \OC_App::shouldUpgrade($app)]]); + OC_JSON::success(['data' => ['update_required' => \OC_App::shouldUpgrade($appId)]]); } catch (Exception $e) { \OCP\Util::writeLog('core', $e->getMessage(), \OCP\Util::ERROR); OC_JSON::error(array("data" => array("message" => $e->getMessage()) )); |