diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-08-11 18:39:16 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-08-11 18:39:16 +0200 |
commit | 30ff3ad45b8eeb09e3c96386d51474c6f74cde34 (patch) | |
tree | 474d5c82fe9b405bf414fba60ea0f5bedf445fdd /apps/files_external | |
parent | 36c1b7eb310bb072bbed7303d51b74794b330f57 (diff) | |
download | nextcloud-server-30ff3ad45b8eeb09e3c96386d51474c6f74cde34.tar.gz nextcloud-server-30ff3ad45b8eeb09e3c96386d51474c6f74cde34.zip |
adjust files app, and integrate files_external into that section
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/appinfo/info.xml | 3 | ||||
-rw-r--r-- | apps/files_external/lib/Settings/Admin.php | 4 | ||||
-rw-r--r-- | apps/files_external/lib/Settings/Section.php | 67 |
3 files changed, 3 insertions, 71 deletions
diff --git a/apps/files_external/appinfo/info.xml b/apps/files_external/appinfo/info.xml index e4433880d3a..cd52c39b30e 100644 --- a/apps/files_external/appinfo/info.xml +++ b/apps/files_external/appinfo/info.xml @@ -13,7 +13,7 @@ <admin>admin-external-storage</admin> </documentation> <rememberlogin>false</rememberlogin> - <version>1.1.1</version> + <version>1.1.2</version> <types> <filesystem/> </types> @@ -27,6 +27,5 @@ <settings> <admin>OCA\Files_External\Settings\Admin</admin> - <admin-section>OCA\Files_External\Settings\Section</admin-section> </settings> </info> diff --git a/apps/files_external/lib/Settings/Admin.php b/apps/files_external/lib/Settings/Admin.php index eebfd712874..102680d0341 100644 --- a/apps/files_external/lib/Settings/Admin.php +++ b/apps/files_external/lib/Settings/Admin.php @@ -79,7 +79,7 @@ class Admin implements ISettings { * @return string the section ID, e.g. 'sharing' */ public function getSection() { - return 'externalstorage'; + return 'files'; } /** @@ -90,7 +90,7 @@ class Admin implements ISettings { * E.g.: 70 */ public function getPriority() { - return 5; + return 40; } } diff --git a/apps/files_external/lib/Settings/Section.php b/apps/files_external/lib/Settings/Section.php deleted file mode 100644 index 850b04251a6..00000000000 --- a/apps/files_external/lib/Settings/Section.php +++ /dev/null @@ -1,67 +0,0 @@ -<?php -/** - * @copyright Copyright (c) 2016 Arthur Schiwon <blizzz@arthur-schiwon.de> - * - * @author Arthur Schiwon <blizzz@arthur-schiwon.de> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -namespace OCA\Files_External\Settings; - -use OCP\IL10N; -use OCP\Settings\ISection; - -class Section implements ISection { - /** @var IL10N */ - private $l; - - public function __construct(IL10N $l) { - $this->l = $l; - } - - /** - * returns the ID of the section. It is supposed to be a lower case string, - * e.g. 'ldap' - * - * @returns string - */ - public function getID() { - return 'externalstorage'; - } - - /** - * returns the translated name as it should be displayed, e.g. 'LDAP / AD - * integration'. Use the L10N service to translate it. - * - * @return string - */ - public function getName() { - return $this->l->t('External Storage'); - } - - /** - * @return int whether the form should be rather on the top or bottom of - * the settings navigation. The sections are arranged in ascending order of - * the priority values. It is required to return a value between 0 and 99. - * - * E.g.: 70 - */ - public function getPriority() { - return 35; - } -} |