mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-31 01:23:32 +03:00
Nextcloud25 Call to undefined method OC_App::registerPersonal() #96
https://github.com/pierre-alain-b/rainloop-nextcloud/issues/285
This commit is contained in:
parent
258f7fb1ad
commit
e7a54e69d1
4 changed files with 20 additions and 18 deletions
|
|
@ -71,9 +71,4 @@ class Application extends App {
|
|||
});
|
||||
}
|
||||
|
||||
public function registerPersonalSettings() {
|
||||
\OCP\App::registerPersonal('snappymail', 'templates/personal');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue