summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-21 12:48:40 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-21 12:48:40 +0200
commitab8616b2f85a8bdc0224deaa06de6e55d8ed2ec2 (patch)
tree334bc6f6735af395b125fb9a001a08744905d99f /core
parentd0aeb268d687f803e62069c852bcd7a1a86eadee (diff)
parente66e67567f778e7f7b4871e3bfb055beb8de1517 (diff)
downloadnextcloud-server-ab8616b2f85a8bdc0224deaa06de6e55d8ed2ec2.tar.gz
nextcloud-server-ab8616b2f85a8bdc0224deaa06de6e55d8ed2ec2.zip
Merge pull request #19924 from owncloud/issue-19891-update-lists-disabled-apps-twice
Update - Only add one section for disabled apps
Diffstat (limited to 'core')
-rw-r--r--core/ajax/update.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 11d159f15d1..2af110deaa4 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -112,15 +112,18 @@ if (OC::checkUpgrade(false)) {
exit();
}
- if (!empty($incompatibleApps)) {
- $eventSource->send('notice',
- (string)$l->t('Following incompatible apps have been disabled: %s', implode(', ', $incompatibleApps)));
+ $disabledApps = [];
+ foreach ($disabledThirdPartyApps as $app) {
+ $disabledApps[$app] = (string) $l->t('%s (3rdparty)', [$app]);
}
- if (!empty($disabledThirdPartyApps)) {
- $eventSource->send('notice',
- (string)$l->t('Following apps have been disabled: %s', implode(', ', $disabledThirdPartyApps)));
+ foreach ($incompatibleApps as $app) {
+ $disabledApps[$app] = (string) $l->t('%s (incompatible)', [$app]);
}
+ if (!empty($disabledApps)) {
+ $eventSource->send('notice',
+ (string)$l->t('Following apps have been disabled: %s', implode(', ', $disabledApps)));
+ }
} else {
$eventSource->send('notice', (string)$l->t('Already up to date'));
}