summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-11-21 09:07:50 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:30:03 +0100
commit5aed91c3212bc0dbb2e19f6ec8cab4d91cbb34c0 (patch)
tree826ccd3ac5e2921fc7883cc2c52f4bd6cd5b5aac
parentd001dbd2594b8d937d3ccaefa4ea7ab6452a0acc (diff)
downloadnextcloud-server-5aed91c3212bc0dbb2e19f6ec8cab4d91cbb34c0.tar.gz
nextcloud-server-5aed91c3212bc0dbb2e19f6ec8cab4d91cbb34c0.zip
small fixes
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
-rw-r--r--settings/Application.php6
-rw-r--r--settings/Controller/UsersController.php5
-rw-r--r--settings/js/federationscopemenu.js4
3 files changed, 7 insertions, 8 deletions
diff --git a/settings/Application.php b/settings/Application.php
index 2f9b786d438..ca2b2b91f71 100644
--- a/settings/Application.php
+++ b/settings/Application.php
@@ -96,16 +96,18 @@ class Application extends App {
$c->query('Logger')
);
});
+
$container->registerService('AppSettingsController', function(IContainer $c) {
return new AppSettingsController(
$c->query('AppName'),
$c->query('Request'),
$c->query('L10N'),
$c->query('Config'),
- $c->query('ICacheFactory'),
$c->query('INavigationManager'),
$c->query('IAppManager'),
- $c->query('OcsClient')
+ $c->query('CategoryFetcher'),
+ $c->query('AppFetcher'),
+ \OC::$server->getL10NFactory()
);
});
$container->registerService('AuthSettingsController', function(IContainer $c) {
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index 77d65877ba3..58cc59f9848 100644
--- a/settings/Controller/UsersController.php
+++ b/settings/Controller/UsersController.php
@@ -63,7 +63,7 @@ class UsersController extends Controller {
private $isAdmin;
/** @var IUserManager */
private $userManager;
- /** @var \OC\Group\Manager */
+ /** @var IGroupManager */
private $groupManager;
/** @var IConfig */
private $config;
@@ -671,9 +671,6 @@ class UsersController extends Controller {
* @PasswordConfirmationRequired
* @todo merge into saveUserSettings
*
- * @NoAdminRequired
- * @PasswordConfirmationRequired
- *
* @param string $username
* @param string $displayName
* @return DataResponse
diff --git a/settings/js/federationscopemenu.js b/settings/js/federationscopemenu.js
index 36b720e8c45..066f648c104 100644
--- a/settings/js/federationscopemenu.js
+++ b/settings/js/federationscopemenu.js
@@ -46,8 +46,8 @@
this._scopes = [
{
name: 'private',
- displayName: (this.field == 'avatar' || this.field == 'displayname') ? t('core', 'Local') : t('core', 'Private'),
- tooltip: (this.field == 'avatar' || this.field == 'displayname') ? t('core', 'Only visible to local users') : t('core', 'Only visible to you'),
+ displayName: (this.field === 'avatar' || this.field === 'displayname') ? t('core', 'Local') : t('core', 'Private'),
+ tooltip: (this.field === 'avatar' || this.field === 'displayname') ? t('core', 'Only visible to local users') : t('core', 'Only visible to you'),
icon: OC.imagePath('core', 'actions/password'),
active: false
},