aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/lib/JSSettingsHelper.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/comments/lib/JSSettingsHelper.php')
-rw-r--r--apps/comments/lib/JSSettingsHelper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/comments/lib/JSSettingsHelper.php b/apps/comments/lib/JSSettingsHelper.php
index 4c54bb07c1c..93578e06295 100644
--- a/apps/comments/lib/JSSettingsHelper.php
+++ b/apps/comments/lib/JSSettingsHelper.php
@@ -23,20 +23,20 @@
namespace OCA\Comments;
-use OCP\IServerContainer;
+use OCP\IConfig;
class JSSettingsHelper {
- /** @var IServerContainer */
+ /** @var IConfig */
private $c;
- public function __construct(IServerContainer $c) {
+ public function __construct(IConfig $c) {
$this->c = $c;
}
public function extend(array $settings) {
$appConfig = json_decode($settings['array']['oc_appconfig'], true);
- $value = (int)$this->c->getConfig()->getAppValue('comments', 'maxAutoCompleteResults', 10);
+ $value = (int)$this->c->getAppValue('comments', 'maxAutoCompleteResults', 10);
$appConfig['comments']['maxAutoCompleteResults'] = $value;
$settings['array']['oc_appconfig'] = json_encode($appConfig);