From efc851dd9b6c77fd9a16c50c87e6b4f1f813794b Mon Sep 17 00:00:00 2001 From: Alfred Egger Date: Fri, 1 Jan 2021 01:00:49 +0100 Subject: [PATCH] Migrate away from deprecated app.php file --- appinfo/app.php | 32 -------------------------------- appinfo/info.xml | 8 ++++++++ 2 files changed, 8 insertions(+), 32 deletions(-) delete mode 100644 appinfo/app.php diff --git a/appinfo/app.php b/appinfo/app.php deleted file mode 100644 index 33d6b53..0000000 --- a/appinfo/app.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @copyright Loic Blot 2015 - */ - -namespace OCA\Weather\AppInfo; - -\OC::$server->getNavigationManager()->add([ - // the string under which your app will be referenced in owncloud - 'id' => 'weather', - - // sorting weight for the navigation. The higher the number, the higher - // will it be listed in the navigation - 'order' => 10, - - // the route that will be shown on startup - 'href' => \OC::$server->getURLGenerator()->linkToRoute('weather.city.index'), - - // the icon that will be shown in the navigation - // this file needs to exist in img/ - 'icon' => \OC::$server->getURLGenerator()->imagePath('weather', 'app.svg'), - - // the title of your application. This will be used in the - // navigation or on the settings page of your app - 'name' => \OCP\Util::getL10N('weather')->t('Weather') -]); diff --git a/appinfo/info.xml b/appinfo/info.xml index c546f99..ef28f71 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -20,4 +20,12 @@ OCA\Weather\Settings\AdminSettings + + + weather + Weather + weather.city.index + app.svg + +