]> source.dussan.org Git - nextcloud-server.git/commitdiff
small fixes
authorBjoern Schiessle <bjoern@schiessle.org>
Mon, 21 Nov 2016 08:07:50 +0000 (09:07 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 21 Nov 2016 10:30:03 +0000 (11:30 +0100)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
settings/Application.php
settings/Controller/UsersController.php
settings/js/federationscopemenu.js

index 2f9b786d4388b24c2078ae0da22f0c55627eb55e..ca2b2b91f71958eca4540a41e343f301bcc15fff 100644 (file)
@@ -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) {
index 77d65877ba342d56b0ffa6e74cf209e73af25920..58cc59f9848fe695079c71cc222ce3b16271101b 100644 (file)
@@ -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
index 36b720e8c45fef389b4b41c70deaa4f47de85a9b..066f648c104a080ec3183b9aa00a42f9d69e1621 100644 (file)
@@ -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
                                },