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

github.com/pierre-alain-b/rainloop-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Alain Bandinelli <pa@bandinelli.net>2022-10-20 12:46:08 +0300
committerPierre-Alain Bandinelli <pa@bandinelli.net>2022-10-20 12:46:08 +0300
commit7136d5d52ae5b7d693046c9820f8502787a8abc2 (patch)
tree1e3e57be5411229e716faeeb14fa68b097d5af82
parentf24115c333dce0059aa6a8428cc3de34868bfe7d (diff)
Fixing bug calling deprecated nextcloud API7.2.6
-rw-r--r--appinfo/app.php1
-rw-r--r--appinfo/info.xml6
-rw-r--r--lib/AppInfo/Application.php7
-rw-r--r--lib/Settings/PersonalSettings.php14
4 files changed, 16 insertions, 12 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index b2bc8fa..172ed03 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -10,6 +10,5 @@
$app = new OCA\RainLoop\AppInfo\Application();
$app->registerNavigation();
-$app->registerPersonalSettings();
$app->getContainer()->query('RainLoopHelper')->registerHooks();
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 57dad83..e524379 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>rainloop</id>
- <name>RainLoop</name>
- <summary>RainLoop Webmail</summary>
- <description>Simple, modern and fast web-based email client. After enabling in Nextcloud, go to Nextcloud admin panel, "Additionnal settings" and you will see a "Rainloop webmail" section. There, click on the link to go to the Rainloop admin panel. The default user/password is admin/12345. This version is based on Rainloop 1.16.0 (2021-05).</description>
+ <name>RainLoop (deprecated, consider Snappymail)</name>
+ <summary>RainLoop Webmail (deprecated, consider Snappymail)</summary>
+ <description>Rainloop is not maintained anymore. Consider a switch to Snappymail which is an actively-maintained fork of Rainloop. After enabling in Nextcloud, go to Nextcloud admin panel, "Additionnal settings" and you will see a "Rainloop webmail" section. There, click on the link to go to the Rainloop admin panel. The default user/password is admin/12345. This version is based on Rainloop 1.16.0 (2021-05).</description>
<version>7.2.5</version>
<licence>agpl</licence>
<author>RainLoop Team, Nextgen-Networks, Tab Fitts, Nathan Kinkade, Pierre-Alain Bandinelli</author>
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index ae8d2dc..0e40bcb 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -79,9 +79,4 @@ class Application extends App {
});
}
- public function registerPersonalSettings() {
- \OCP\App::registerPersonal('rainloop', 'templates/personal');
- }
-
-}
-
+} \ No newline at end of file
diff --git a/lib/Settings/PersonalSettings.php b/lib/Settings/PersonalSettings.php
index ec188c0..211d42f 100644
--- a/lib/Settings/PersonalSettings.php
+++ b/lib/Settings/PersonalSettings.php
@@ -3,8 +3,10 @@ namespace OCA\RainLoop\Settings;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
+use OCP\Settings\ISettings;
-class PersonalSettings {
+class PersonalSettings implements ISettings
+{
private $config;
public function __construct(IConfig $config) {
@@ -28,5 +30,13 @@ class PersonalSettings {
return new TemplateResponse('rainloop', 'personal_settings', $parameters, '');
}
-}
+ public function getSection() {
+ return 'additional';
+ }
+
+ public function getPriority() {
+ return 50;
+ }
+
+}