Add template response wopi_url

This commit is contained in:
Henry Castro 2016-03-05 18:14:16 -04:00
parent 08dbf236d9
commit 3a607668cc
2 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,7 @@ class DocumentController extends Controller{
'uploadMaxFilesize' => $maxUploadFilesize, 'uploadMaxFilesize' => $maxUploadFilesize,
'uploadMaxHumanFilesize' => \OCP\Util::humanFileSize($maxUploadFilesize), 'uploadMaxHumanFilesize' => \OCP\Util::humanFileSize($maxUploadFilesize),
'allowShareWithLink' => $this->settings->getAppValue('core', 'shareapi_allow_links', 'yes'), 'allowShareWithLink' => $this->settings->getAppValue('core', 'shareapi_allow_links', 'yes'),
'wopi_url' => $this->settings->getAppValue('richdocuments', 'wopi_url'),
]); ]);
$policy = new ContentSecurityPolicy(); $policy = new ContentSecurityPolicy();

View File

@ -50,6 +50,7 @@ script('files', 'jquery.fileupload');
</li> </li>
</ul> </ul>
</div> </div>
<input type="hidden" id="wopi-ulr" name="wopi-url" value="<?php p($_['wopi_url']) ?>" />
<input type="hidden" id="webodf-unstable" value="<?php p($_['useUnstable']) ?>" /> <input type="hidden" id="webodf-unstable" value="<?php p($_['useUnstable']) ?>" />
<?php if ($_['enable_previews']): ?> <?php if ($_['enable_previews']): ?>
<input type="hidden" id="previews_enabled" value="<?php p($_['enable_previews']) ?>" /> <input type="hidden" id="previews_enabled" value="<?php p($_['enable_previews']) ?>" />