diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-25 21:36:37 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-25 22:03:18 +0200 |
commit | 6dbe417c51125419516dd29ebe4e529926c41a0f (patch) | |
tree | ac2d5df9abb4f3a94db5c002231faed1c85817f1 /core/templates/layout.user.php | |
parent | e351ba56f13f82a9d5a8f95ee42f5343a167d5f4 (diff) | |
download | nextcloud-server-6dbe417c51125419516dd29ebe4e529926c41a0f.tar.gz nextcloud-server-6dbe417c51125419516dd29ebe4e529926c41a0f.zip |
Inlince oc.js if possible!
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r-- | core/templates/layout.user.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index d258e3582d0..bc8edf085d0 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -26,6 +26,11 @@ <?php foreach($_['printcssfiles'] as $cssfile): ?> <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="print"> <?php endforeach; ?> + <?php if (isset($_['inline_ocjs'])): ?> + <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" type="text/javascript"> + <?php print_unescaped($_['inline_ocjs']); ?> + </script> + <?php endif; ?> <?php foreach($_['jsfiles'] as $jsfile): ?> <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php print_unescaped($jsfile); ?>"></script> <?php endforeach; ?> |