From b50c4e3f72f4ee2eaea14a3f1065a9845ede63e4 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Wed, 1 Mar 2017 15:51:53 +0100 Subject: [PATCH] Admin: cleanup --- appinfo/app.php | 4 +--- lib/Settings/Admin.php | 2 +- templates/{settings.php => admin.php} | 0 3 files changed, 2 insertions(+), 4 deletions(-) rename templates/{settings.php => admin.php} (100%) diff --git a/appinfo/app.php b/appinfo/app.php index 1f1f958..dee9a8d 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -11,8 +11,6 @@ namespace OCA\Weather\AppInfo; -OCP\App::registerAdmin('weather', 'settings') - if (class_exists('\OCP\AppFramework\App')) { \OCP\App::addNavigationEntry(array( // the string under which your app will be referenced in owncloud @@ -34,6 +32,6 @@ if (class_exists('\OCP\AppFramework\App')) { 'name' => \OCP\Util::getL10N('weather')->t('Weather') )); } else { - $msg = 'Can not enable the OwnBoard app because the App Framework App is disabled'; + $msg = 'Can not enable Weather app because the App Framework App is disabled'; \OCP\Util::writeLog('weather', $msg, \OCP\Util::ERROR); } diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 22a676f..410091f 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -45,7 +45,7 @@ class Admin implements ISettings { * @return string the section ID, e.g. 'sharing' */ public function getSection() { - return 'weather'; + return 'additional'; } /** diff --git a/templates/settings.php b/templates/admin.php similarity index 100% rename from templates/settings.php rename to templates/admin.php