aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-08-01 09:25:09 +0200
committerGitHub <noreply@github.com>2017-08-01 09:25:09 +0200
commit2b895e0c60b6f283cb26b2ca0e18a05497103bc2 (patch)
tree85e00c12d8a0e507d46c11ec4cba67fc31aae67e /core/ajax
parent456392e627de3aad19c8188974a4972cf4e274db (diff)
parent2fae696d35d221a9fb25b90b90b32c35c81fdd45 (diff)
downloadnextcloud-server-2b895e0c60b6f283cb26b2ca0e18a05497103bc2.tar.gz
nextcloud-server-2b895e0c60b6f283cb26b2ca0e18a05497103bc2.zip
Merge pull request #5847 from nextcloud/make-phan-config-more-strict-2
Phan fixes
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index d23e3b0d56d..818291d3eff 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -50,6 +50,10 @@ class FeedBackHandler {
private $progressStateStep = 0;
/** @var string */
private $currentStep;
+ /** @var \OCP\IEventSource */
+ private $eventSource;
+ /** @var \OCP\IL10N */
+ private $l10n;
public function __construct(\OCP\IEventSource $eventSource, \OCP\IL10N $l10n) {
$this->eventSource = $eventSource;
@@ -220,7 +224,7 @@ if (OC::checkUpgrade(false)) {
if (!empty($disabledApps)) {
$eventSource->send('notice',
- (string)$l->t('Following apps have been disabled: %s', implode(', ', $disabledApps)));
+ (string)$l->t('Following apps have been disabled: %s', [implode(', ', $disabledApps)]));
}
} else {
$eventSource->send('notice', (string)$l->t('Already up to date'));