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-10-05 18:12:44 +0300
committerPhie <phie@phie.ovh>2019-10-05 18:12:44 +0300
commit1bc73dbf769028af921e32254c4fa523425b3f0b (patch)
treea0a636e14b40b1a612fd8d32bc8e9c96a70485a0
parentb2f750f8cb9e96ffcf46992566db39cb4948f36d (diff)
Revert "Revert "change endpoint for ui settings""
This reverts commit 526c6b612fb8f7a8189910bc6788915012fa530c.
-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 66a25e7..8a613fb 100755
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -56,8 +56,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 93ba44f..ec13695 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -167,14 +167,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");
}