diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-26 20:26:41 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-27 09:38:09 +0100 |
commit | 495562f40cbafd459abd4862ad0b82157ad25459 (patch) | |
tree | 53a936f236b63b5f8a5bb878bc274d25b7562776 /settings/admin.php | |
parent | 880b31c513eb755a057ca075d462e34ace911d0e (diff) | |
download | nextcloud-server-495562f40cbafd459abd4862ad0b82157ad25459.tar.gz nextcloud-server-495562f40cbafd459abd4862ad0b82157ad25459.zip |
Move federated cloud sharing, files externals and updater to special positions
Diffstat (limited to 'settings/admin.php')
-rw-r--r-- | settings/admin.php | 29 |
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')); |