summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib/AppInfo/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sharebymail/lib/AppInfo/Application.php')
-rw-r--r--apps/sharebymail/lib/AppInfo/Application.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/AppInfo/Application.php b/apps/sharebymail/lib/AppInfo/Application.php
index 98febf9dad7..12419a8c3d9 100644
--- a/apps/sharebymail/lib/AppInfo/Application.php
+++ b/apps/sharebymail/lib/AppInfo/Application.php
@@ -32,7 +32,8 @@ class Application extends App {
public function __construct(array $urlParams = array()) {
parent::__construct('sharebymail', $urlParams);
- $settings = new Settings();
+ $settingsManager = \OC::$server->query(Settings\SettingsManager::class);
+ $settings = new Settings($settingsManager);
/** register capabilities */
$container = $this->getContainer();
@@ -40,6 +41,7 @@ class Application extends App {
/** register hooks */
Util::connectHook('\OCP\Config', 'js', $settings, 'announceShareProvider');
+ Util::connectHook('\OCP\Config', 'js', $settings, 'announceShareByMailSettings');
}
}