Skip to content

Commit

Permalink
Merge pull request #19924 from owncloud/issue-19891-update-lists-disa…
Browse files Browse the repository at this point in the history
…bled-apps-twice

Update - Only add one section for disabled apps
  • Loading branch information
DeepDiver1975 committed Oct 21, 2015
2 parents d0aeb26 + e66e675 commit ab8616b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions core/ajax/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,18 @@
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'));
}
Expand Down

0 comments on commit ab8616b

Please sign in to comment.