summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/Controller/UsersController.php11
-rw-r--r--settings/Hooks.php6
2 files changed, 8 insertions, 9 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index 76394fcb6c6..4b03cf91a10 100644
--- a/settings/Controller/UsersController.php
+++ b/settings/Controller/UsersController.php
@@ -45,7 +45,6 @@ use OCP\Files\Config\IUserMountCache;
use OCP\Encryption\IEncryptionModule;
use OCP\Encryption\IManager;
use OCP\IConfig;
-use OCP\IGroupManager;
use OCP\IL10N;
use OCP\ILogger;
use OCP\IRequest;
@@ -71,7 +70,7 @@ class UsersController extends Controller {
private $isAdmin;
/** @var IUserManager */
private $userManager;
- /** @var IGroupManager */
+ /** @var \OC\Group\Manager */
private $groupManager;
/** @var IConfig */
private $config;
@@ -113,7 +112,7 @@ class UsersController extends Controller {
* @param string $appName
* @param IRequest $request
* @param IUserManager $userManager
- * @param IGroupManager $groupManager
+ * @param \OC\Group\Manager $groupManager
* @param IUserSession $userSession
* @param IConfig $config
* @param bool $isAdmin
@@ -136,7 +135,7 @@ class UsersController extends Controller {
public function __construct($appName,
IRequest $request,
IUserManager $userManager,
- IGroupManager $groupManager,
+ \OC\Group\Manager $groupManager,
IUserSession $userSession,
IConfig $config,
$isAdmin,
@@ -180,14 +179,14 @@ class UsersController extends Controller {
$this->isEncryptionAppEnabled = $appManager->isEnabledForUser('encryption');
if ($this->isEncryptionAppEnabled) {
// putting this directly in empty is possible in PHP 5.5+
- $result = $config->getAppValue('encryption', 'recoveryAdminEnabled', 0);
+ $result = $config->getAppValue('encryption', 'recoveryAdminEnabled', '0');
$this->isRestoreEnabled = !empty($result);
}
}
/**
* @param IUser $user
- * @param array $userGroups
+ * @param array|null $userGroups
* @return array
*/
private function formatUserForIndex(IUser $user, array $userGroups = null) {
diff --git a/settings/Hooks.php b/settings/Hooks.php
index 2cc5ce30bbe..115f62a9a2a 100644
--- a/settings/Hooks.php
+++ b/settings/Hooks.php
@@ -119,7 +119,7 @@ class Hooks {
if ($user->getEMailAddress() !== null) {
$template = $this->mailer->createEMailTemplate();
$template->addHeader();
- $template->addHeading($this->l->t('Password changed for %s', $user->getDisplayName()), false);
+ $template->addHeading($this->l->t('Password changed for %s', [$user->getDisplayName()]), false);
$template->addBodyText($text . ' ' . $this->l->t('If you did not request this, please contact an administrator.'));
$template->addFooter();
@@ -185,10 +185,10 @@ class Hooks {
if ($oldMailAddress !== null) {
$template = $this->mailer->createEMailTemplate();
$template->addHeader();
- $template->addHeading($this->l->t('Email address changed for %s', $user->getDisplayName()), false);
+ $template->addHeading($this->l->t('Email address changed for %s', [$user->getDisplayName()]), false);
$template->addBodyText($text . ' ' . $this->l->t('If you did not request this, please contact an administrator.'));
if ($user->getEMailAddress()) {
- $template->addBodyText($this->l->t('The new email address is %s', $user->getEMailAddress()));
+ $template->addBodyText($this->l->t('The new email address is %s', [$user->getEMailAddress()]));
}
$template->addFooter();