Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
  • Loading branch information
schiessle committed Nov 21, 2016
1 parent 585f2eb commit 4a5d05e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 4 additions & 2 deletions settings/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,18 @@ public function __construct(array $urlParams=[]){
$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) {
Expand Down
5 changes: 1 addition & 4 deletions settings/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -671,9 +671,6 @@ public function stats() {
* @PasswordConfirmationRequired
* @todo merge into saveUserSettings
*
* @NoAdminRequired
* @PasswordConfirmationRequired
*
* @param string $username
* @param string $displayName
* @return DataResponse
Expand Down
4 changes: 2 additions & 2 deletions settings/js/federationscopemenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 4a5d05e

Please sign in to comment.