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

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2022-06-01 16:08:32 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2022-06-01 16:08:32 +0300
commit0726f01efdee3212e216439400dfd9efbeaa715d (patch)
tree92702883aa1afb73abf1b4a8ac213dd977fa1fcc /controller/settingscontroller.php
parent54f03d583322da9fd0ac198de994e0ca0be82701 (diff)
parentf520993f6ae1b8a7228f8ced2a0b5e7e41148e52 (diff)
Merge remote-tracking branch 'remotes/origin/develop' into feature/goback-in-viewerfeature/goback-in-viewer
Diffstat (limited to 'controller/settingscontroller.php')
-rw-r--r--controller/settingscontroller.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/controller/settingscontroller.php b/controller/settingscontroller.php
index 6f82553..adc6fe8 100644
--- a/controller/settingscontroller.php
+++ b/controller/settingscontroller.php
@@ -126,6 +126,7 @@ class SettingsController extends Controller {
"toolbarNoTabs" => $this->config->GetCustomizationToolbarNoTabs(),
"successful" => $this->config->SettingsAreSuccessful(),
"watermark" => $this->config->GetWatermarkSettings(),
+ "macros" => $this->config->GetCustomizationMacros(),
"tagsEnabled" => App::isEnabled("systemtags"),
"reviewDisplay" => $this->config->GetCustomizationReviewDisplay(),
"templates" => $this->GetGlobalTemplates()
@@ -200,6 +201,7 @@ class SettingsController extends Controller {
* @param bool $forcesave - forcesave
* @param bool $help - display help
* @param bool $toolbarNoTabs - display toolbar tab
+ * @param bool $macros - run document macros
* @param string $reviewDisplay - review viewing mode
*
* @return array
@@ -216,6 +218,7 @@ class SettingsController extends Controller {
$forcesave,
$help,
$toolbarNoTabs,
+ $macros,
$reviewDisplay
) {
@@ -231,6 +234,7 @@ class SettingsController extends Controller {
$this->config->SetCustomizationForcesave($forcesave);
$this->config->SetCustomizationHelp($help);
$this->config->SetCustomizationToolbarNoTabs($toolbarNoTabs);
+ $this->config->SetCustomizationMacros($macros);
$this->config->SetCustomizationReviewDisplay($reviewDisplay);
return [