diff options
author | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2017-04-28 15:43:03 +0300 |
---|---|---|
committer | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2017-04-28 15:43:03 +0300 |
commit | 77a0ddeb8a9a7c88e29390f6b51af8eaa33a30e8 (patch) | |
tree | 7af5debdb544759e5f06f8ab5c4657b9b6f82a91 /controller | |
parent | 1f182a19d6578dd029a10c9a80146150fbe28338 (diff) |
saving internal url
Diffstat (limited to 'controller')
-rw-r--r-- | controller/settingscontroller.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/controller/settingscontroller.php b/controller/settingscontroller.php index 6366d2e..c85448b 100644 --- a/controller/settingscontroller.php +++ b/controller/settingscontroller.php @@ -89,6 +89,7 @@ class SettingsController extends Controller { public function index() { $data = [ "documentserver" => $this->config->GetDocumentServerUrl(), + "documentserverInternal" => $this->config->GetDocumentServerInternalUrl(), "secret" => $this->config->GetDocumentServerSecret() ]; return new TemplateResponse($this->appName, "settings", $data, "blank"); @@ -102,8 +103,9 @@ class SettingsController extends Controller { * * @return array */ - public function settings($documentserver, $secret) { + public function settings($documentserver, $documentserverInternal, $secret) { $this->config->SetDocumentServerUrl($documentserver); + $this->config->SetDocumentServerInternalUrl($documentserverInternal); $this->config->SetDocumentServerSecret($secret); $documentserver = $this->config->GetDocumentServerUrl(); @@ -113,6 +115,7 @@ class SettingsController extends Controller { return [ "documentserver" => $this->config->GetDocumentServerUrl(), + "documentserverInternal" => $this->config->GetDocumentServerInternalUrl(), "error" => $error ]; } |