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-30 14:02:11 +0300
committerPhie <phie@phie.ovh>2019-09-30 14:02:11 +0300
commit526c6b612fb8f7a8189910bc6788915012fa530c (patch)
treee85bee90b5e9db147985a0b1bb68b5bca44233e6
parentbff682568b997b949e4878dfc5e4db4f5c32c8dc (diff)
Revert "change endpoint for ui settings"v0.18.2
This reverts commit 2ed68f8007a46fe7eb572381ad9d1881c884f3f1.
-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 8a613fb..66a25e7 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#getUISettings', 'url' => '/settings/ui', 'verb' => 'GET' ],
- ['name' => 'note#setUISettings', 'url' => '/settings/ui', 'verb' => 'POST' ],
+ ['name' => 'note#getBrowserSettings', 'url' => '/settings/browser', 'verb' => 'GET' ],
+ ['name' => 'note#setBrowserSettings', 'url' => '/settings/browser', '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 626aaf0..40f4db9 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -166,14 +166,14 @@
/**
* @NoAdminRequired
*/
- public function setUISettings($jsonSettings) {
+ public function setBrowserSettings($jsonSettings) {
$this->Config->setUserValue($this->userId, $this->appName,"browser_settings",$jsonSettings);
}
/**
* @NoAdminRequired
*/
- public function getUISettings() {
+ public function getBrowserSettings() {
return $this->Config->getUserValue($this->userId, $this->appName,"browser_settings");
}