Nextcloud25 Call to undefined method OC_App::registerPersonal() #96

https://github.com/pierre-alain-b/rainloop-nextcloud/issues/285
This commit is contained in:
the-djmaze 2022-10-11 10:53:15 +02:00
parent 258f7fb1ad
commit e7a54e69d1
4 changed files with 20 additions and 18 deletions

View file

@ -71,9 +71,4 @@ class Application extends App {
});
}
public function registerPersonalSettings() {
\OCP\App::registerPersonal('snappymail', 'templates/personal');
}
}

View file

@ -3,8 +3,10 @@ namespace OCA\SnappyMail\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,12 @@ class PersonalSettings {
return new TemplateResponse('snappymail', 'personal_settings', $parameters, '');
}
}
public function getSection() {
return 'additional';
}
public function getPriority() {
return 50;
}
}