Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-26 22:26:41 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-27 11:38:09 +0300
commit495562f40cbafd459abd4862ad0b82157ad25459 (patch)
tree53a936f236b63b5f8a5bb878bc274d25b7562776 /settings/admin.php
parent880b31c513eb755a057ca075d462e34ace911d0e (diff)
Move federated cloud sharing, files externals and updater to special positions
Diffstat (limited to 'settings/admin.php')
-rw-r--r--settings/admin.php29
1 files changed, 27 insertions, 2 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 4416af1fe37..b74a4cf4c5e 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -135,6 +135,33 @@ if ($request->getServerProtocol() !== 'https' || !OC_Util::isAnnotationsWorking
) {
$formsAndMore[] = array('anchor' => 'security-warning', 'section-name' => $l->t('Security & setup warnings'));
}
+$formsAndMore[] = array('anchor' => 'shareAPI', 'section-name' => $l->t('Sharing'));
+
+// Prioritize fileSharingSettings and files_external and move updater to the version
+$fileSharingSettings = $filesExternal = $updaterAppPanel = '';
+foreach ($forms as $index => $form) {
+ if (strpos($form, 'id="fileSharingSettings"')) {
+ $fileSharingSettings = $form;
+ unset($forms[$index]);
+ continue;
+ }
+ if (strpos($form, 'id="files_external"')) {
+ $filesExternal = $form;
+ unset($forms[$index]);
+ continue;
+ }
+ if (strpos($form, 'class="updater-admin"')) {
+ $updaterAppPanel = $form;
+ unset($forms[$index]);
+ continue;
+ }
+}
+if ($filesExternal) {
+ $formsAndMore[] = array('anchor' => 'files_external', 'section-name' => $l->t('External Storage'));
+}
+$template->assign('fileSharingSettings', $fileSharingSettings);
+$template->assign('filesExternal', $filesExternal);
+$template->assign('updaterAppPanel', $updaterAppPanel);
$formsMap = array_map(function ($form) {
if (preg_match('%(<h2[^>]*>.*?</h2>)%i', $form, $regs)) {
@@ -158,8 +185,6 @@ $formsAndMore = array_merge($formsAndMore, $formsMap);
// add bottom hardcoded forms from the template
$formsAndMore[] = array('anchor' => 'backgroundjobs', 'section-name' => $l->t('Cron'));
-$formsAndMore[] = array('anchor' => 'shareAPI', 'section-name' => $l->t('Sharing'));
-$formsAndMore[] = array('anchor' => 'encryptionAPI', 'section-name' => $l->t('Server Side Encryption'));
$formsAndMore[] = array('anchor' => 'mail_general_settings', 'section-name' => $l->t('Email Server'));
$formsAndMore[] = array('anchor' => 'log-section', 'section-name' => $l->t('Log'));
$formsAndMore[] = array('anchor' => 'admin-tips', 'section-name' => $l->t('Tips & tricks'));