Merge pull request #19924 from owncloud/issue-19891-update-lists-disabled-apps-twice
Update - Only add one section for disabled apps
This commit is contained in:
commit
ab8616b2f8
|
@ -112,15 +112,18 @@ if (OC::checkUpgrade(false)) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($incompatibleApps)) {
|
$disabledApps = [];
|
||||||
$eventSource->send('notice',
|
foreach ($disabledThirdPartyApps as $app) {
|
||||||
(string)$l->t('Following incompatible apps have been disabled: %s', implode(', ', $incompatibleApps)));
|
$disabledApps[$app] = (string) $l->t('%s (3rdparty)', [$app]);
|
||||||
}
|
}
|
||||||
if (!empty($disabledThirdPartyApps)) {
|
foreach ($incompatibleApps as $app) {
|
||||||
$eventSource->send('notice',
|
$disabledApps[$app] = (string) $l->t('%s (incompatible)', [$app]);
|
||||||
(string)$l->t('Following apps have been disabled: %s', implode(', ', $disabledThirdPartyApps)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($disabledApps)) {
|
||||||
|
$eventSource->send('notice',
|
||||||
|
(string)$l->t('Following apps have been disabled: %s', implode(', ', $disabledApps)));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$eventSource->send('notice', (string)$l->t('Already up to date'));
|
$eventSource->send('notice', (string)$l->t('Already up to date'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue