|
@@ -100,9 +100,9 @@ discard block |
|
|
block discarded – undo |
|
100
|
100
|
<h2><?php p($l->t('No external storage configured or you don\'t have the permission to configure them')); ?></h2> |
|
101
|
101
|
</div> |
|
102
|
102
|
|
|
103
|
|
-<form data-can-create="<?php echo $canCreateMounts?'true':'false' ?>" id="files_external" class="section" data-encryption-enabled="<?php echo $_['encryptionEnabled']?'true': 'false'; ?>"> |
|
|
103
|
+<form data-can-create="<?php echo $canCreateMounts ? 'true' : 'false' ?>" id="files_external" class="section" data-encryption-enabled="<?php echo $_['encryptionEnabled'] ? 'true' : 'false'; ?>"> |
|
104
|
104
|
<h2 class="inlineblock" data-anchor-name="external-storage"><?php p($l->t('External storage')); ?></h2> |
|
105
|
|
- <a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation'));?>" href="<?php p(link_to_docs('admin-external-storage')); ?>"></a> |
|
|
105
|
+ <a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation')); ?>" href="<?php p(link_to_docs('admin-external-storage')); ?>"></a> |
|
106
|
106
|
<p class="settings-hint"><?php p($l->t('External storage enables you to mount external storage services and devices as secondary Nextcloud storage devices. You may also allow users to mount their own external storage services.')); ?></p> |
|
107
|
107
|
<?php if (isset($_['dependencies']) and ($_['dependencies'] !== '') and $canCreateMounts) { |
|
108
|
108
|
print_unescaped(''.$_['dependencies'].''); |
|
@@ -142,10 +142,10 @@ discard block |
|
|
block discarded – undo |
|
142
|
142
|
<?php p($l->t('Add storage')); ?> |
|
143
|
143
|
</option> |
|
144
|
144
|
<?php |
|
145
|
|
- $sortedBackends = array_filter($_['backends'], function ($backend) use ($_) { |
|
|
145
|
+ $sortedBackends = array_filter($_['backends'], function($backend) use ($_) { |
|
146
|
146
|
return $backend->isVisibleFor($_['visibilityType']); |
|
147
|
147
|
}); |
|
148
|
|
- uasort($sortedBackends, function ($a, $b) { |
|
|
148
|
+ uasort($sortedBackends, function($a, $b) { |
|
149
|
149
|
return strcasecmp($a->getText(), $b->getText()); |
|
150
|
150
|
}); |
|
151
|
151
|
?> |
|
@@ -184,7 +184,7 @@ discard block |
|
|
block discarded – undo |
|
184
|
184
|
|
|
185
|
185
|
<p id="userMountingBackends"<?php if (!$_['allowUserMounting']): ?> class="hidden"<?php endif; ?>> |
|
186
|
186
|
<?php |
|
187
|
|
- $userBackends = array_filter($_['backends'], function ($backend) { |
|
|
187
|
+ $userBackends = array_filter($_['backends'], function($backend) { |
|
188
|
188
|
return $backend->isAllowedVisibleFor(BackendService::VISIBILITY_PERSONAL); |
|
189
|
189
|
}); |
|
190
|
190
|
?> |