Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-07-17 09:31:42 +0300
committerLukas Reschke <lukas@owncloud.com>2015-09-18 14:27:26 +0300
commit7c6d811584338835f9f4fd563780933ecd638356 (patch)
treeed904eb20090cf632ecf4049b2fbc4d9618a3972 /lib/private/app.php
parent947e3d7ab5921d4175dc8a1e30fe35025e714926 (diff)
Prefer OCS Id from database
To be consistent with other logic the app id from the database needs to be prefered. Especially when it comes to be able to replace an outdated OCS id.
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index e44290369a8..6c9f7615228 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -656,6 +656,12 @@ class OC_App {
if (is_array($data)) {
$data = OC_App::parseAppInfo($data);
}
+ if(isset($data['ocsid'])) {
+ $storedId = \OC::$server->getConfig()->getAppValue($appId, 'ocsid');
+ if($storedId !== '' && $storedId !== $data['ocsid']) {
+ $data['ocsid'] = $storedId;
+ }
+ }
self::$appInfo[$appId] = $data;