Skip to content
Snippets Groups Projects
Commit ab8616b2 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #19924 from owncloud/issue-19891-update-lists-disabled-apps-twice

Update - Only add one section for disabled apps
parents d0aeb268 e66e6756
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment