Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-09-24 18:34:00 +0300
committerPhie <phie@phie.ovh>2019-09-24 18:34:00 +0300
commit2ed68f8007a46fe7eb572381ad9d1881c884f3f1 (patch)
tree91d14abd6d1e34ef49d246cabe3841f321be7c38
parent72eb98127bd41ad7c4d24a904cac85fd7174fdfd (diff)
change endpoint for ui settings
-rwxr-xr-xappinfo/routes.php4
-rwxr-xr-xlib/Controller/NoteController.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index bec1370..402ce6e 100755
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -55,8 +55,8 @@ return [
['name' => 'note#getMaterialFont', 'url' => '/templates/CarnetElectron/fonts/material-icons.woff2', 'verb' => 'GET' ],
['name' => 'note#getChangelog', 'url' => '/settings/changelog', 'verb' => 'GET' ],
['name' => 'note#getLangJson', 'url' => '/settings/lang/json', 'verb' => 'GET' ],
- ['name' => 'note#getBrowserSettings', 'url' => '/settings/browser', 'verb' => 'GET' ],
- ['name' => 'note#setBrowserSettings', 'url' => '/settings/browser', 'verb' => 'POST' ],
+ ['name' => 'note#getUISettings', 'url' => '/settings/ui', 'verb' => 'GET' ],
+ ['name' => 'note#setUISettings', 'url' => '/settings/ui', 'verb' => 'POST' ],
['name' => 'PublicApi#getOpusEncoder', 'url' => '/recorder/encoderWorker.min.wasm', 'verb' => 'GET' ],
['name' => 'PublicApi#getOpusDecoder', 'url' => '/recorder/decoderWorker.min.wasm', 'verb' => 'GET' ],
['name' => 'note#getOpusEncoderJavascript', 'url' => '/recorder/encoderWorker.min.js', 'verb' => 'GET' ],
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php
index 1b6347b..a1d4798 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -166,14 +166,14 @@
/**
* @NoAdminRequired
*/
- public function setBrowserSettings($jsonSettings) {
+ public function setUISettings($jsonSettings) {
$this->Config->setUserValue($this->userId, $this->appName,"browser_settings",$jsonSettings);
}
/**
* @NoAdminRequired
*/
- public function getBrowserSettings() {
+ public function getUISettings() {
return $this->Config->getUserValue($this->userId, $this->appName,"browser_settings");
}