diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-02 11:25:20 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-06-02 11:25:20 +0200 |
commit | 777e7bbf532eb2606ff7212df3a794ff75fcff6e (patch) | |
tree | c95d10d7fac255d7e5ab861731b8d1231bc961d3 /settings | |
parent | db22c42e786a9f2c7c236a6e273ed557c527e42f (diff) | |
download | nextcloud-server-777e7bbf532eb2606ff7212df3a794ff75fcff6e.tar.gz nextcloud-server-777e7bbf532eb2606ff7212df3a794ff75fcff6e.zip |
Don't show client info, when the app is disabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/personal.php | 4 | ||||
-rw-r--r-- | settings/templates/personal.php | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/settings/personal.php b/settings/personal.php index 86ac4f753f4..a9637011afa 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -225,9 +225,11 @@ $tmpl->assign('groups', $groups2); // add hardcoded forms from the template $formsAndMore = []; $formsAndMore[]= ['anchor' => 'personal-settings', 'section-name' => $l->t('Personal info')]; +if (\OC::$server->getAppManager()->isEnabledForUser('firstrunwizard')) { + $formsAndMore[]= ['anchor' => 'clientsbox', 'section-name' => $l->t('Sync clients')]; +} $formsAndMore[]= ['anchor' => 'sessions', 'section-name' => $l->t('Sessions')]; $formsAndMore[]= ['anchor' => 'apppasswords', 'section-name' => $l->t('App passwords')]; -$formsAndMore[]= ['anchor' => 'clientsbox', 'section-name' => $l->t('Sync clients')]; $forms=OC_App::getForms('personal'); diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 3e30d775395..8eadfd1a227 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -301,6 +301,7 @@ if($_['passwordChangeSupported']) { </form> +<?php if(OC_APP::isEnabled('firstrunwizard')) {?> <div id="clientsbox" class="section clientsbox"> <h2><?php p($l->t('Get the apps to sync your files'));?></h2> <a href="<?php p($_['clients']['desktop']); ?>" rel="noreferrer" target="_blank"> @@ -329,10 +330,9 @@ if($_['passwordChangeSupported']) { $l->t('If you want to support the project {contributeopen}join development{linkclose} or {contributeopen}spread the word{linkclose}!'))); ?> </p> - <?php if(OC_APP::isEnabled('firstrunwizard')) {?> <p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again'));?></a></p> - <?php }?> </div> +<?php }?> <div id="sessions" class="section"> <h2><?php p($l->t('Sessions'));?></h2> |