Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Commit 7136d5d

Browse files
Fixing bug calling deprecated nextcloud API
1 parent f24115c commit 7136d5d

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

appinfo/app.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010

1111
$app = new OCA\RainLoop\AppInfo\Application();
1212
$app->registerNavigation();
13-
$app->registerPersonalSettings();
1413
$app->getContainer()->query('RainLoopHelper')->registerHooks();
1514

appinfo/info.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0"?>
22
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
33
<id>rainloop</id>
4-
<name>RainLoop</name>
5-
<summary>RainLoop Webmail</summary>
6-
<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>
4+
<name>RainLoop (deprecated, consider Snappymail)</name>
5+
<summary>RainLoop Webmail (deprecated, consider Snappymail)</summary>
6+
<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>
77
<version>7.2.5</version>
88
<licence>agpl</licence>
99
<author>RainLoop Team, Nextgen-Networks, Tab Fitts, Nathan Kinkade, Pierre-Alain Bandinelli</author>

lib/AppInfo/Application.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,4 @@ public function registerNavigation() {
7979
});
8080
}
8181

82-
public function registerPersonalSettings() {
83-
\OCP\App::registerPersonal('rainloop', 'templates/personal');
84-
}
85-
86-
}
87-
82+
}

lib/Settings/PersonalSettings.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33

44
use OCP\AppFramework\Http\TemplateResponse;
55
use OCP\IConfig;
6+
use OCP\Settings\ISettings;
67

7-
class PersonalSettings {
8+
class PersonalSettings implements ISettings
9+
{
810
private $config;
911

1012
public function __construct(IConfig $config) {
@@ -28,5 +30,13 @@ public function getForm() {
2830
return new TemplateResponse('rainloop', 'personal_settings', $parameters, '');
2931
}
3032

31-
}
33+
public function getSection() {
34+
return 'additional';
35+
}
36+
3237

38+
public function getPriority() {
39+
return 50;
40+
}
41+
42+
}

0 commit comments

Comments
 (0)