summaryrefslogtreecommitdiffstats
path: root/settings/ajax/updateapp.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-06-13 21:45:31 +0200
committerGeorg Ehrke <developer@georgehrke.com>2014-06-13 21:45:31 +0200
commitc378e76412fb0bfa52a4dd9e3fc500c6d492cd46 (patch)
tree6a560c3df65e802757f034d3333b183c1f38fe2f /settings/ajax/updateapp.php
parent0890ce4f91df94052387141e8bcf917ead94cb55 (diff)
downloadnextcloud-server-c378e76412fb0bfa52a4dd9e3fc500c6d492cd46.tar.gz
nextcloud-server-c378e76412fb0bfa52a4dd9e3fc500c6d492cd46.zip
skip certain tests for shipped apps
Diffstat (limited to 'settings/ajax/updateapp.php')
-rw-r--r--settings/ajax/updateapp.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/ajax/updateapp.php b/settings/ajax/updateapp.php
index 7010dfe23b5..78f6775fe95 100644
--- a/settings/ajax/updateapp.php
+++ b/settings/ajax/updateapp.php
@@ -19,6 +19,7 @@ $appId = $_POST['appid'];
if (!is_numeric($appId)) {
$appId = OC_Appconfig::getValue($appId, 'ocsid', null);
+ $isShipped = OC_App::isShipped($appId);
if ($appId === null) {
OCP\JSON::error(array(
@@ -26,11 +27,13 @@ if (!is_numeric($appId)) {
));
exit;
}
+} else {
+ $isShipped = false;
}
$appId = OC_App::cleanAppId($appId);
-$result = OC_Installer::updateAppByOCSId($appId);
+$result = OC_Installer::updateAppByOCSId($appId, $isShipped);
if($result !== false) {
OC_JSON::success(array('data' => array('appid' => $appId)));
} else {