Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/ajax
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-19 16:37:03 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 09:20:13 +0300
commite1f52fc9019856d52466d9b796ce738e31f1c4ca (patch)
tree489387720f34360dc58e9f29fb800e1e2af26145 /core/ajax
parent456392e627de3aad19c8188974a4972cf4e274db (diff)
Stricter phan config fixes
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
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'));